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

Issue 2374193002: Make base::PendingTask support ConvertableToTraceFormat (Closed)

Created:
4 years, 2 months ago by gab
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make base::PendingTask support ConvertableToTraceFormat in order for it to only use up a single trace event parameter slot. BUG=649084, 652692 TEST=Take a trace and confirm "src_info" is in args of toplevel tasks.

Patch Set 1 #

Patch Set 2 : JsonWriter::Write requires a temp var #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M base/pending_task.h View 3 chunks +20 lines, -0 lines 4 comments Download
M base/pending_task.cc View 1 3 chunks +34 lines, -2 lines 2 comments Download
M base/trace_event/trace_event.h View 1 chunk +3 lines, -5 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 32 (20 generated)
gab
Oysteine PTAL, seems to work, one bad side-effect I noticed is that searching for a ...
4 years, 2 months ago (2016-09-29 14:43:33 UTC) #15
Primiano Tucci (use gerrit)
On 2016/09/29 14:43:33, gab wrote: > Oysteine PTAL, seems to work, one bad side-effect I ...
4 years, 2 months ago (2016-09-29 17:13:03 UTC) #18
oystein (OOO til 10th of July)
On 2016/09/29 17:13:03, Primiano Tucci wrote: > On 2016/09/29 14:43:33, gab wrote: > > Oysteine ...
4 years, 2 months ago (2016-09-29 17:37:10 UTC) #19
gab
On 2016/09/29 17:37:10, oystein wrote: > On 2016/09/29 17:13:03, Primiano Tucci wrote: > > On ...
4 years, 2 months ago (2016-09-29 19:07:50 UTC) #20
oystein (OOO til 10th of July)
On 2016/09/29 19:07:50, gab wrote: > On 2016/09/29 17:37:10, oystein wrote: > > On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 19:23:50 UTC) #21
gab
On 2016/09/29 19:23:50, oystein wrote: > On 2016/09/29 19:07:50, gab wrote: > > On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 20:06:07 UTC) #22
caseq
https://codereview.chromium.org/2374193002/diff/60001/base/pending_task.cc File base/pending_task.cc (right): https://codereview.chromium.org/2374193002/diff/60001/base/pending_task.cc#newcode22 base/pending_task.cc:22: bool tracing_enabled; considering this is hot code, you really ...
4 years, 2 months ago (2016-09-29 22:46:37 UTC) #24
gab
https://codereview.chromium.org/2374193002/diff/60001/base/pending_task.cc File base/pending_task.cc (right): https://codereview.chromium.org/2374193002/diff/60001/base/pending_task.cc#newcode22 base/pending_task.cc:22: bool tracing_enabled; On 2016/09/29 22:46:36, caseq wrote: > considering ...
4 years, 2 months ago (2016-10-03 15:18:58 UTC) #26
caseq
On 2016/10/03 15:18:58, gab wrote: > > As such I think correctness is superior to ...
4 years, 2 months ago (2016-10-03 16:50:27 UTC) #27
gab
So remaining points of contention here I think: 1) primiano: "This is going to cause ...
4 years, 2 months ago (2016-10-03 18:48:34 UTC) #28
Sami
https://codereview.chromium.org/2374193002/diff/60001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/2374193002/diff/60001/base/trace_event/trace_event.h#newcode441 base/trace_event/trace_event.h:441: #define INTERNAL_TRACE_TASK_EXECUTION(run_function, task) \ I believe there are a ...
4 years, 2 months ago (2016-10-04 11:25:31 UTC) #30
gab
4 years, 2 months ago (2016-10-04 13:29:57 UTC) #31
On 2016/10/04 11:25:31, Sami wrote:
>
https://codereview.chromium.org/2374193002/diff/60001/base/trace_event/trace_...
> File base/trace_event/trace_event.h (right):
> 
>
https://codereview.chromium.org/2374193002/diff/60001/base/trace_event/trace_...
> base/trace_event/trace_event.h:441: #define
> INTERNAL_TRACE_TASK_EXECUTION(run_function, task)                      \
> I believe there are a number of tools (e.g., Lighthouse, maybe also Telemetry)
> that parse this information. Could we try to track them down and coordinate
this
> change with them?

Right.

Thanks everyone for you input, I'll go ahead and close this CL and work around
the current limitations by logging a second trace event for the same task when
"task_scheduler" tracing category is enabled.

I filed http://crbug.com/652692 to track the improvements discussed here but
will let the tracing owners decide where to go from here.

Powered by Google App Engine
This is Rietveld 408576698