Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 9212025: Support use of third party time function to profiler (Closed)

Created:
8 years, 11 months ago by jar (doing other things)
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org, brettw-cc_chromium.org, John Grabowski
Visibility:
Public.

Description

Support use of third party time function for about:profiler This uses TCMalloc to provide a time function, allowing us to see how much memory was allocated on a single thread during the running of a task. The alternate time function is put in place only when a specific environment variable is detected during TCMalloc startup. This change currently is activated only in Windows/Linux, as it is based on changes TCMalloc (not used on Mac). We also create an infrastructure for using any alternate timer, to replace the "wall clock time," on a per-thread basis, in the about:profiler infrastructure. That interface may be used on other platforms, including scenarios where we have a per-thread-CPU-time function to replace the wall-clock timer. In all cases, when this alternate timer is activated, we lose the ability to calculated queueing time. Queueing time is based on a time snapshot taken on a second thread, and hence is not comparable to the alternate timer (when the alternate timer is engaged). r=rtenneti BUG=103321 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122180

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Total comments: 12

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -4 lines) Patch
M base/allocator/allocator.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M base/allocator/allocator_shim.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -3 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
A base/profiler/alternate_timer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +36 lines, -0 lines 0 comments Download
A base/profiler/alternate_timer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +25 lines, -0 lines 0 comments Download
M base/profiler/tracked_time.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M base/tracked_objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +11 lines, -0 lines 0 comments Download
M base/tracked_objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +52 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/tcmalloc.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/thread_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +23 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/thread_cache.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jar (doing other things)
Will, Since I'm hacking away at TCMalloc here, I thought perchance you could keep me ...
8 years, 10 months ago (2012-02-14 02:52:04 UTC) #1
willchan no longer on Chromium
http://codereview.chromium.org/9212025/diff/46001/third_party/tcmalloc/chromium/src/thread_cache.h File third_party/tcmalloc/chromium/src/thread_cache.h (right): http://codereview.chromium.org/9212025/diff/46001/third_party/tcmalloc/chromium/src/thread_cache.h#newcode305 third_party/tcmalloc/chromium/src/thread_cache.h:305: // Chromium profiling. You should comment more what this ...
8 years, 10 months ago (2012-02-15 01:29:56 UTC) #2
jar (doing other things)
Comment added per request by WillChan. http://codereview.chromium.org/9212025/diff/46001/third_party/tcmalloc/chromium/src/thread_cache.h File third_party/tcmalloc/chromium/src/thread_cache.h (right): http://codereview.chromium.org/9212025/diff/46001/third_party/tcmalloc/chromium/src/thread_cache.h#newcode305 third_party/tcmalloc/chromium/src/thread_cache.h:305: // Chromium profiling. ...
8 years, 10 months ago (2012-02-15 02:05:08 UTC) #3
willchan no longer on Chromium
third_party/tcmalloc changes LGTM I did not review base/. Btw, in what way is this Windows ...
8 years, 10 months ago (2012-02-15 17:33:54 UTC) #4
jar (doing other things)
re: Windows only(?) I *think* that the TCMalloc code used in Windows might actually be ...
8 years, 10 months ago (2012-02-15 17:43:49 UTC) #5
willchan no longer on Chromium
On Wed, Feb 15, 2012 at 9:43 AM, <[email protected]> wrote: > re: Windows only(?) > ...
8 years, 10 months ago (2012-02-15 18:00:32 UTC) #6
jar (doing other things)
You are correct. The src/third_party/tcmalloc/tcmalloc subtree is not part of our chromium tree, even though ...
8 years, 10 months ago (2012-02-15 18:16:13 UTC) #7
ramant (doing other things)
lgtm http://codereview.chromium.org/9212025/diff/52003/base/profiler/alternate_timer.h File base/profiler/alternate_timer.h (right): http://codereview.chromium.org/9212025/diff/52003/base/profiler/alternate_timer.h#newcode23 base/profiler/alternate_timer.h:23: // Gets the pointer to a function that ...
8 years, 10 months ago (2012-02-15 18:33:46 UTC) #8
jar (doing other things)
Changes made per comments by rtenneti. If this gets a set of green try bots, ...
8 years, 10 months ago (2012-02-15 20:26:31 UTC) #9
ramant (doing other things)
8 years, 10 months ago (2012-02-15 22:31:17 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698