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

Issue 2881493004: Marshal 64 bit byte counts as double to the profiler. (Closed)

Created:
3 years, 7 months ago by Sigurður Ásgeirsson
Modified:
3 years, 7 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Marshal 64 bit byte counts as double through to JavaScript. As-is, byte counts larger than 31 bits are getting truncated and/or mis-interpreted as negative numbers, which does no good on the summing. Also explicitly test the transitions from <31 bit to >31 bit to >32 bits which I originally suspected of causing the negative aggregates. BUG=644385 TBR=jochen@chromium.org Review-Url: https://codereview.chromium.org/2881493004 Cr-Commit-Position: refs/heads/master@{#471356} Committed: https://chromium.googlesource.com/chromium/src/+/03ce267472a3f16830796d5bd04d79371d61afaf

Patch Set 1 #

Patch Set 2 : Fix the serialization unit test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M base/tracked_objects_unittest.cc View 1 chunk +16 lines, -2 lines 3 comments Download
M chrome/browser/task_profiler/task_profiler_data_serializer.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/task_profiler/task_profiler_data_serializer_unittest.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Sigurður Ásgeirsson
This fixes a problem where the byte sum aggregates go negative in the profiler. Chris ...
3 years, 7 months ago (2017-05-11 19:16:27 UTC) #2
chrisha
lgtm
3 years, 7 months ago (2017-05-11 19:30:46 UTC) #3
Sigurður Ásgeirsson
Now actually works - gentle nudge for OWNERS.
3 years, 7 months ago (2017-05-12 14:57:52 UTC) #12
gab
lgtm https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc File base/tracked_objects_unittest.cc (right): https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc#newcode350 base/tracked_objects_unittest.cc:350: // In the 32 bit implementation, this tests ...
3 years, 7 months ago (2017-05-12 15:07:52 UTC) #13
Sigurður Ásgeirsson
Thanks! https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc File base/tracked_objects_unittest.cc (right): https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc#newcode350 base/tracked_objects_unittest.cc:350: // In the 32 bit implementation, this tests ...
3 years, 7 months ago (2017-05-12 15:11:21 UTC) #14
gab
https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc File base/tracked_objects_unittest.cc (right): https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc#newcode350 base/tracked_objects_unittest.cc:350: // In the 32 bit implementation, this tests the ...
3 years, 7 months ago (2017-05-12 15:13:41 UTC) #15
Sigurður Ásgeirsson
On 2017/05/12 15:13:41, gab wrote: > https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc > File base/tracked_objects_unittest.cc (right): > > https://codereview.chromium.org/2881493004/diff/20001/base/tracked_objects_unittest.cc#newcode350 > ...
3 years, 7 months ago (2017-05-12 17:13:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2881493004/20001
3 years, 7 months ago (2017-05-12 17:14:01 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 17:46:56 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/03ce267472a3f16830796d5bd04d...

Powered by Google App Engine
This is Rietveld 408576698