Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(10)

Issue 1189173003: Adding thread id to PartitionAlloc memory dumps dumps for single process mode and bug fix. (Closed)

Created:
4 years, 10 months ago by ssid
Modified:
4 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@test
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Adding thread id to PartitionAlloc memory dumps for single process mode and bug fix. There are multiple blink platform impl in the process when run using single process mode or when the renderer has workers with blink. So, the path of the dump is appended with thread id to differentiate the dumps. Also, the windows implementation of vprintf does not support %zu. So, %u is used here and casted. BUG=501912 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197467

Patch Set 1 #

Total comments: 2

Patch Set 2 : Build fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M Source/platform/PartitionAllocMemoryDumpProvider.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
ssid
4 years, 10 months ago (2015-06-18 17:38:13 UTC) #2
Primiano Tucci (use gerrit)
LGTM, +haraken
4 years, 10 months ago (2015-06-18 17:49:47 UTC) #4
haraken
LGTM with a comment https://codereview.chromium.org/1189173003/diff/1/Source/platform/PartitionAllocMemoryDumpProvider.cpp File Source/platform/PartitionAllocMemoryDumpProvider.cpp (right): https://codereview.chromium.org/1189173003/diff/1/Source/platform/PartitionAllocMemoryDumpProvider.cpp#newcode40 Source/platform/PartitionAllocMemoryDumpProvider.cpp:40: dumpName = String::format("partition_alloc/thread_%lu/%s/directMap_%lu", static_cast<unsigned long>(WTF::currentThread()), ...
4 years, 10 months ago (2015-06-18 17:55:30 UTC) #5
ssid
+cevans PTAL https://codereview.chromium.org/1189173003/diff/1/Source/platform/PartitionAllocMemoryDumpProvider.cpp File Source/platform/PartitionAllocMemoryDumpProvider.cpp (right): https://codereview.chromium.org/1189173003/diff/1/Source/platform/PartitionAllocMemoryDumpProvider.cpp#newcode40 Source/platform/PartitionAllocMemoryDumpProvider.cpp:40: dumpName = String::format("partition_alloc/thread_%lu/%s/directMap_%lu", static_cast<unsigned long>(WTF::currentThread()), partitionName, ++m_uid); ...
4 years, 10 months ago (2015-06-18 20:55:25 UTC) #8
Primiano Tucci (use gerrit)
-cevans he's more than welcome to comment but I don't think we should bug him ...
4 years, 10 months ago (2015-06-18 21:26:35 UTC) #10
ssid
Added cevans@for owner review. He is the owner of WTF. https://codereview.chromium.org/1189173003/diff/40001/Source/platform/PartitionAllocMemoryDumpProvider.cpp File Source/platform/PartitionAllocMemoryDumpProvider.cpp (right): https://codereview.chromium.org/1189173003/diff/40001/Source/platform/PartitionAllocMemoryDumpProvider.cpp#newcode41 ...
4 years, 10 months ago (2015-06-18 21:41:48 UTC) #11
Chris Evans
https://codereview.chromium.org/1189173003/diff/40001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1189173003/diff/40001/Source/wtf/Partitions.cpp#newcode112 Source/wtf/Partitions.cpp:112: uint64_t threadId = static_cast<uint64_t>(currentThread()); Is there any reason we ...
4 years, 10 months ago (2015-06-18 21:44:55 UTC) #13
ssid
> Is there any reason we need to query this here and then pass it ...
4 years, 10 months ago (2015-06-18 21:48:42 UTC) #14
Chris Evans
On 2015/06/18 21:48:42, ssid wrote: > > Is there any reason we need to query ...
4 years, 10 months ago (2015-06-18 21:54:21 UTC) #15
Primiano Tucci (use gerrit)
> I think I prefer the original patch. The call to currentThread() was in > ...
4 years, 10 months ago (2015-06-18 21:58:51 UTC) #16
haraken
On 2015/06/18 21:58:51, Primiano Tucci wrote: > > I think I prefer the original patch. ...
4 years, 10 months ago (2015-06-19 08:51:56 UTC) #17
haraken
On 2015/06/18 21:54:21, Chris Evans wrote: > On 2015/06/18 21:48:42, ssid wrote: > > > ...
4 years, 10 months ago (2015-06-19 08:53:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1189173003/60001
4 years, 10 months ago (2015-06-19 13:09:15 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2015-06-19 13:13:06 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197467

Powered by Google App Engine
This is Rietveld 408576698