New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 638756 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Log tracing config metadata

Project Member Reported by benjhayden@chromium.org, Aug 17 2016

Issue description

Every trace should contain its config metadata, including enabled categories.

This will close a loop to allow TBMv2 metrics to assert that the tracing categories that they require were enabled, and allow the metrics side panel to offer only the metrics that can be computed for the given trace.
 
Cc: petrcermak@chromium.org
Besides the general utility of being able to rely on having these categories in the trace, the particular motivation is this: https://github.com/catapult-project/catapult/issues/1818
Cc: zh...@chromium.org simonhatch@chromium.org
Cc: fmea...@chromium.org
Any movement on this?
It looks like TracingConfig is logged as a metadata event.

TraceConfig	
{enable_argument_filter: false,
 enable_sampling: false,
 enable_systrace: true,
 excluded_categories: ["AccountFetcherService",
...
                       "worker.scheduler"],
 included_categories: ["disabled-by-default-blink.debug.layout.trees"],
 record_mode: "record-until-full"}

However, this doesn't include the default categories that are enabled, so if the list of default categories changes (which can happen when somebody adds a macro somewhere that we don't know about), then this is fragile.

But it sounds like this is unmotivated? So close this?
Status: WontFix (was: Assigned)
Ah, if it's already there, then probably no need to do anything about this bug.
Status: Available (was: WontFix)
Actually Ben, how do you know those event are logged?

I don't see them after clicking "M" button in the trace https://console.developers.google.com/m/cloudstorage/b/chrome-telemetry-output/o/trace-file-id_3-2016-10-03_13-31-12-31410.html
The "M" button only shows the "metaData" JSON dict, it doesn't scan for any __metadata events in the stream AFAIK.
Ben, Chrome version of the trace is 55.0.2880.0
The importer recognizes metadata events by their phase ('M'), not their category ("__metadata" or whatever).

I managed to get that file. It does not contain events in the __metadata category.

Does the benchmark need to add "__metadata" to the list of enabled categories?

It looks like the metadata event that contains "product-version" is not generated using the normal macros. It looks like it is directly appended to the file without checking whether any category is enabled.

Maybe TraceConfig should be added to the TracingController metadata dict instead of using TRACE_EVENT_API_ADD_METADATA_EVENT?
Cc: -petrcermak@chromium.org
Project Member

Comment 14 by sheriffbot@chromium.org, Oct 5 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Fixed (was: Untriaged)
Fixed a long time ago in https://chromium-review.googlesource.com/737049

Sign in to add a comment