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

Issue 1851233002: Reland of [tracing] Adding task information to heap profiler (Closed)

Created:
4 years, 8 months ago by ssid
Modified:
4 years, 8 months ago
CC:
chirantan+watch_chromium.org, chromium-reviews, sadrul, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of [tracing] Adding task information to heap profiler (patchset #1 id:1 of https://codereview.chromium.org/1846333002/ ) Reason for revert: Fixing the flakiness in trace_test by removing the event from sequenced_worker_pool.cc. 2 trace events together somehow causes multiple calls to UpdateDuration. I couldn't reproduce yet. Also because 2 trace events there is not necessary, I will figure out a way to add WorkerPool task information in next CL. Original issue's description: > Revert of [tracing] Adding task information to heap profiler (patchset #18 id:630001 of https://codereview.chromium.org/1784133002/ ) > > Reason for revert: > Caused flakiness of trace_test; see Issue 599794. > > Original issue's description: > > [tracing] Adding task information to heap profiler > > > > This CL adds more information to the malloc heap profiler added in > > crrev.com/1675183006. The heap profiler only shows trace events and all > > the tasks show up as "MessageLoop::Runtask". > > > > This CL does: > > - Moves TRACE_TASK_EXECUTION macro from task_annotator to > > trace_event.h. > > - Adds extra scoped trace event to track the task context in heap > > profiler. > > - The folder where the task was posted from is used to categorize > > allocations. > > - Uses the type_name for context temporarily till we define a new > > context dimension for allocations. > > > > BUG=594803 > > > > Committed: https://crrev.com/533c402f8b21e503ebcaf3f0de427f41076b4de1 > > Cr-Commit-Position: refs/heads/master@{#384521} > > TBR=jochen@chromium.org,dskiba@google.com,oysteine@chromium.org,petrcermak@chromium.org,primiano@chromium.org,skyostil@chromium.org,thakis@chromium.org,ssid@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=594803 > > Committed: https://crrev.com/7a3a6793b5a471280e64842060d565e6f52e939f > Cr-Commit-Position: refs/heads/master@{#384695} TBR=jochen@chromium.org,dskiba@google.com,oysteine@chromium.org,petrcermak@chromium.org,primiano@chromium.org,skyostil@chromium.org,thakis@chromium.org,kbr@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true BUG=594803 Committed: https://crrev.com/092c384b364d376d8ef4971cf43a5b11aa2884cf Cr-Commit-Position: refs/heads/master@{#384795}

Patch Set 1 : Original patch #

Patch Set 2 : Remove event from sequenced_worker_pool.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -27 lines) Patch
M base/debug/task_annotator.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M base/threading/worker_pool_posix.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M base/threading/worker_pool_win.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M base/trace_event/common/trace_event_common.h View 1 chunk +9 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker.cc View 1 4 chunks +19 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc View 1 2 chunks +27 lines, -0 lines 0 comments Download
M base/trace_event/heap_profiler_type_name_deduplicator.cc View 1 2 chunks +32 lines, -1 line 0 comments Download
M base/trace_event/heap_profiler_type_name_deduplicator_unittest.cc View 1 3 chunks +39 lines, -14 lines 0 comments Download
M base/trace_event/trace_event.h View 1 3 chunks +30 lines, -0 lines 0 comments Download
M components/scheduler/base/task_queue_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (7 generated)
ssid
Created Reland of [tracing] Adding task information to heap profiler
4 years, 8 months ago (2016-04-01 22:33:06 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851233002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851233002/280001
4 years, 8 months ago (2016-04-02 00:09:29 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-02 03:26:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851233002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851233002/280001
4 years, 8 months ago (2016-04-02 04:21:37 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:280001)
4 years, 8 months ago (2016-04-02 04:22:18 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/092c384b364d376d8ef4971cf43a5b11aa2884cf Cr-Commit-Position: refs/heads/master@{#384795}
4 years, 8 months ago (2016-04-02 04:23:26 UTC) #13
Primiano Tucci (use gerrit)
The diff between PS1 and PS2 seems null. What is the difference w.r.t. the original ...
4 years, 8 months ago (2016-04-04 10:25:34 UTC) #14
Primiano Tucci (use gerrit)
4 years, 8 months ago (2016-04-04 11:17:15 UTC) #15
Message was sent while issue was closed.
On 2016/04/04 10:25:34, Primiano Tucci wrote:
> The diff between PS1 and PS2 seems null. What is the difference w.r.t. the
> original CL? Very hard to tell from here. :-/

Ah never mind, figured out the 	base/threading/sequenced_worker_pool.cc change.
The fact that updateduration is called twice, as per crbug.com/599794#c9, smells
very bad though. Can you please investigate and figure out what's going on?

Powered by Google App Engine
This is Rietveld 408576698