r267431 - in /trunk/gcc: ChangeLog gcov.c

marxin@gcc.gnu.org marxin@gcc.gnu.org
Thu Dec 27 08:59:00 GMT 2018


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  <mliska@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



More information about the Gcc-cvs mailing list