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

Issue 6250070: Added command line switches and UI (controlled via a build option) (Closed)

Created:
9 years, 10 months ago by DaveMoore
Modified:
9 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Added command line switches and UI (controlled via a build option) to make it easier to use the sampling profiler. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73374

Patch Set 1 #

Patch Set 2 : Some cleanup #

Total comments: 25

Patch Set 3 : Fix review issues #

Total comments: 15

Patch Set 4 : Address review concerns #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -0 lines) Patch
M base/base.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A base/debug/profiler.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A base/debug/profiler.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M build/common.gypi View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/app/chrome_command_ids.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_main.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/common/profiling.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/common/profiling.cc View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
DaveMoore
9 years, 10 months ago (2011-02-01 01:11:21 UTC) #1
jamesr
Looks pretty good to me. I think someone else should look at the startup path ...
9 years, 10 months ago (2011-02-01 01:21:45 UTC) #2
Evan Martin
Awesome that you're doing this! http://codereview.chromium.org/6250070/diff/2001/base/debug/profiler.h File base/debug/profiler.h (right): http://codereview.chromium.org/6250070/diff/2001/base/debug/profiler.h#newcode7 base/debug/profiler.h:7: // and if you ...
9 years, 10 months ago (2011-02-01 02:45:59 UTC) #3
DaveMoore
http://codereview.chromium.org/6250070/diff/2001/base/debug/profiler.cc File base/debug/profiler.cc (right): http://codereview.chromium.org/6250070/diff/2001/base/debug/profiler.cc#newcode14 base/debug/profiler.cc:14: #endif I didn't see anything that specifically said whether ...
9 years, 10 months ago (2011-02-01 19:21:54 UTC) #4
evanm
I'm still not quite clear on the startup parts. http://www.chromium.org/developers/design-documents/startup describes a bit more background. ...
9 years, 10 months ago (2011-02-01 19:39:59 UTC) #5
DaveMoore
http://codereview.chromium.org/6250070/diff/5002/base/debug/profiler.cc File base/debug/profiler.cc (right): http://codereview.chromium.org/6250070/diff/5002/base/debug/profiler.cc#newcode29 base/debug/profiler.cc:29: ReplaceSubstringsAfterOffset(&full_name, 0, "{count}", count); ProfilerStart in tcmalloc takes a ...
9 years, 10 months ago (2011-02-01 21:33:03 UTC) #6
evanm
LGTM I wonder if Profiler belongs in the base namespace, though... http://codereview.chromium.org/6250070/diff/5002/base/debug/profiler.cc File base/debug/profiler.cc (right): ...
9 years, 10 months ago (2011-02-01 21:41:24 UTC) #7
brettw
Base additions LGTM (I didn't check the rest).
9 years, 10 months ago (2011-02-01 22:32:59 UTC) #8
willchan no longer on Chromium
9 years, 2 months ago (2011-10-03 19:40:03 UTC) #9
I just looked at this code. We're scheduling file writes on the UI thread. When
profiling gets enabled, can we use a different thread?

Powered by Google App Engine
This is Rietveld 408576698