https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88225

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Dec 27 08:59:35 2018
New Revision: 267431

URL: https://gcc.gnu.org/viewcvs?rev=267431&root=gcc&view=rev
Log:
Fix slowness in gcov (PR gcov-profile/88225).

2018-12-27  Martin Liska  <mli...@suse.cz>

        PR gcov-profile/88225
        * gcov.c(source_info::get_functions_at_location):
        Use newly added line_to_function_map.
        (source_info::add_function): New.
        (output_json_intermediate_file): Use a pointer return
        type for get_functions_at_location.
        (process_all_functions): Use add_function instead
        of direct push to a s->functions container.
        (release_structures): Release ident_to_fn.
        (read_graph_file): Register function into ident_to_fn.
        (read_count_file): Use the map.
        (output_lines): Handle pointer return type of
        get_functions_at_location.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcov.c

Reply via email to