diff options
author | rmcilroy <rmcilroy@chromium.org> | 2015-02-06 08:06:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-06 16:06:41 +0000 |
commit | a38b72b5f1ec147bb961e9045ca0c165f428d5e4 (patch) | |
tree | c193ad751c0463eb75d6436560b939eec9d6584c /base/trace_event | |
parent | 5d4328ee3a31954c8cb424595becbdd62a359f11 (diff) | |
download | chromium_src-a38b72b5f1ec147bb961e9045ca0c165f428d5e4.zip chromium_src-a38b72b5f1ec147bb961e9045ca0c165f428d5e4.tar.gz chromium_src-a38b72b5f1ec147bb961e9045ca0c165f428d5e4.tar.bz2 |
Add DeadlineOverrun step to the RendererSchedulerIdlePeriod trace event.
Adds a deadline overrun step to the RendererSchedulerIdlePeriod trace event
to make it obvious when an idle period lasts longer than its deadline.
Also adds a TRACE_EVENT_ASYNC_STEP_INTO_WITH_TIMESTAMP0 which is required
to add the step at the appropriate time.
BUG=455713
Review URL: https://codereview.chromium.org/908473002
Cr-Commit-Position: refs/heads/master@{#315042}
Diffstat (limited to 'base/trace_event')
-rw-r--r-- | base/trace_event/trace_event.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/trace_event/trace_event.h b/base/trace_event/trace_event.h index a4c4f83..c8583d7 100644 --- a/base/trace_event/trace_event.h +++ b/base/trace_event/trace_event.h @@ -596,6 +596,15 @@ category_group, name, id, TRACE_EVENT_FLAG_NONE, "step", step, \ arg1_name, arg1_val) +// Similar to TRACE_EVENT_ASYNC_STEP_INTOx but with a custom |at| timestamp +// provided. +#define TRACE_EVENT_ASYNC_STEP_INTO_WITH_TIMESTAMP0(category_group, name, \ + id, step, timestamp) \ + INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP( \ + TRACE_EVENT_PHASE_ASYNC_STEP_INTO, category_group, name, id, \ + static_cast<int>(base::PlatformThread::CurrentId()), \ + timestamp, TRACE_EVENT_FLAG_NONE, "step", step) + // Records a single ASYNC_STEP_PAST event for |step| immediately. If the // category is not enabled, then this does nothing. The |name| and |id| must // match the ASYNC_BEGIN event above. The |step| param identifies this step |