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

Issue 10826018: Handle wrapping of task run count beyond 2^31 times. (Closed)

Created:
8 years, 5 months ago by jar (doing other things)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org, eroman, ramant (doing other things)
Visibility:
Public.

Description

Handle wrapping of task run count beyond 2^31 times. Some long lived browsers (and more likely, run-away and hyperactive tasks) can run more times than can be tallied in a mere int (2^31 times). We use the count as a modulus to take a uniform sample of other profiled activities. If the task runs enough times, this value turns negative, and eventually becomes zero, which would cause an arithmetic exception (divide by zero when doing modulo operation). We now clamp the value at 2^31 - 1, which will make clear what has happened when users visit about:profiler (a task has run a LOT), and we then use this clamped value (instead of the real count) to be very infrequent about taking a replacement sample. This sampling should be "good enough for government work," and should not impact enough folks to have any effect on our profiling stats. r=isherman BUG=138961 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148628

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
M base/tracked_objects.cc View 1 3 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jar (doing other things)
8 years, 5 months ago (2012-07-25 21:23:24 UTC) #1
ramant (doing other things)
lgtm
8 years, 5 months ago (2012-07-25 22:32:49 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/10826018/3001
8 years, 5 months ago (2012-07-25 23:34:18 UTC) #3
eroman
Just to be a jerk, I feel the need to point out the title should ...
8 years, 5 months ago (2012-07-25 23:38:07 UTC) #4
commit-bot: I haz the power
List of reviewers changed. eroman@chromium.org did a drive-by without LGTM'ing!
8 years, 5 months ago (2012-07-26 01:14:48 UTC) #5
eroman
lgtm
8 years, 5 months ago (2012-07-26 01:16:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/10826018/3001
8 years, 5 months ago (2012-07-26 03:27:04 UTC) #7
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 12:23:01 UTC) #8
Try job failure for 10826018-3001 (retry) on linux_rel for steps
"interactive_ui_tests, browser_tests".
It's a second try, previously, steps "interactive_ui_tests, browser_tests"
failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698