Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4981)

Issue 6940061: [PATCH] Compute and emit working set information from gcov-dump

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by tejohnson
Modified:
9 years, 8 months ago
Reviewers:
hubicka
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -110 lines) Patch
M basic-block.h View 2 chunks +1 line, -10 lines 0 comments Download
M gcov-dump.c View 7 chunks +43 lines, -1 line 0 comments Download
M gcov-io.h View 1 chunk +22 lines, -0 lines 0 comments Download
M gcov-io.c View 1 chunk +107 lines, -0 lines 0 comments Download
M lto-cgraph.c View 1 chunk +1 line, -1 line 0 comments Download
M profile.h View 1 chunk +1 line, -1 line 0 comments Download
M profile.c View 3 chunks +4 lines, -97 lines 0 comments Download

Messages

Total messages: 4
tejohnson
This patch enables the gcov-dump tool to optionally compute and dump the working set information ...
11 years, 4 months ago (2012-12-15 02:11:49 UTC) #1
tejohnson
Ping. Thanks, Teresa On Fri, Dec 14, 2012 at 6:11 PM, Teresa Johnson <tejohnson@google.com> wrote: ...
11 years, 1 month ago (2013-03-27 17:47:40 UTC) #2
hubicka_ucw.cz
> > > > 2012-12-14 Teresa Johnson <tejohnson@google.com> > > > > * lto-cgraph.c (input_symtab): ...
11 years, 1 month ago (2013-04-03 17:52:50 UTC) #3
tejohnson
11 years, 1 month ago (2013-04-03 20:54:15 UTC) #4
On Wed, Apr 3, 2013 at 10:52 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> >
>> > 2012-12-14  Teresa Johnson  <tejohnson@google.com>
>> >
>> >         * lto-cgraph.c (input_symtab): Replace call to
compute_working_sets
>> >         to get_working_sets.
>> >         * gcov-io.c (compute_working_sets): Moved most of body of old
>> >         compute_working_sets here from profile.c.
>> >         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
>> >         (gcov_working_set_t): Moved typedef here from basic-block.h
>> >         (compute_working_set): Declare.
>> >         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
>> >         (get_working_sets): Renamed from compute_working_set,
>> >         replace most of body with call to new compute_working_sets.
>> >         (get_exec_counts): Replace call to compute_working_sets
>> >         to get_working_sets.
>> >         * profile.h (get_working_sets): Renamed from
>> >         compute_working_set.
>> >         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
>> >         * gcov-dump.c (dump_working_sets): New function.
>
> Looks like good idea.  We probaby couold extend gcov-dump to also compute the
real
> histogram across multiple input files and compare these two.

cc'ing Rong Xu - he has a tool under development that he plans to
contribute upstream which does both offline merging of different sets
of profile data, and full, exact recomputation of the histogram. I'm
using an early version of his tool right now to compare the accuracy
of the libgcov-merged histogram to the exactly merged histogram (I'll
update the thread on that hopefully later today).

>
> Patch is OK.

Thanks, committed.

Teresa

> Thanks,
> Honza



--
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b