Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Issue 8899016: Add hook for developers to play with profiler (unofficially) (Closed)

Created:
9 years ago by jar (doing other things)
Modified:
9 years ago
CC:
chromium-reviews, brettw-cc_chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Add hook for developers to play with profiler(unofficially) r=rtenneti BUG=107061 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114188

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M base/profiler/scoped_profile.h View 1 1 chunk +24 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jar (doing other things)
9 years ago (2011-12-10 00:14:22 UTC) #1
jar (doing other things)
Raman, Could you take a look at this? It is just meant to be a ...
9 years ago (2011-12-12 23:53:49 UTC) #2
ramant (doing other things)
lgtm http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h File base/profiler/scoped_profile.h (right): http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h#newcode22 base/profiler/scoped_profile.h:22: // It allows developers to do some profililng ...
9 years ago (2011-12-13 00:02:54 UTC) #3
ian fette
lgtm with raman's whitespace nits http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h File base/profiler/scoped_profile.h (right): http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h#newcode19 base/profiler/scoped_profile.h:19: #if defined(GOOGLE_CHROME_BUILD) There seems ...
9 years ago (2011-12-13 01:02:15 UTC) #4
jar (doing other things)
9 years ago (2011-12-13 06:36:37 UTC) #5
Changes and respnoses to rtenneti and ian's comments.

http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h
File base/profiler/scoped_profile.h (right):

http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h#...
base/profiler/scoped_profile.h:19: #if defined(GOOGLE_CHROME_BUILD)
It is hard to tell the outcome of the discussion you cited... but I copied the
flag used in browser_main to decide on UMA metrics setting.

I *think* the bug you cited leans towards using what I have... so I'll stay with
it.

On 2011/12/13 01:02:16, ian fette wrote:
> There seems to be active discussion around GOOGLE_CHROME_BUILD vs
> OFFICIAL_BUILD. I think historically OFFICIAL_BUILD might have been correct
here
> but
>
https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thr...
> seems to be leaning the other way. I suspect this is probably now correct, but
> just pointing that out.

http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h#...
base/profiler/scoped_profile.h:22: // It allows developers to do some profililng
of their code, and see results on
On 2011/12/13 00:02:54, ramant wrote:
> nit: profililng -> profiling

Done.

http://codereview.chromium.org/8899016/diff/1/base/profiler/scoped_profile.h#...
base/profiler/scoped_profile.h:39: #define
LINE_BASED_VARIABLE_NAME_FOR_PROFILING                                          
    \
On 2011/12/13 00:02:54, ramant wrote:
> nit: more than 80 chars

Done.

Powered by Google App Engine
This is Rietveld 408576698