v8/src/tracing
Mikhail Khokhlov 224cbd2179 [Tracing w/SDK] Replace TraceStateObserver with TrackEventSessionObserver
With v8_use_perfetto = true, tracing sessions are controlled by
Perfetto, not TraceLog. This can lead to inconsistencies, e.g.
TraceLog signalling trace start while V8's TrackEvent datasource
hasn't been initialized yet.

This CL removes the TraceStateObserver interface and replaces its
uses with perfetto::TrackEventSessionObserver which correctly tracks
Perfetto tracing sessions start and end.

See also crrev.com/c/4066184 for the corresponding Chrome change.

Bug: chromium:1006766
Change-Id: I94b2189c8b28aec8b17ec8fc1246e27c904e4ee9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4062038
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Mikhail Khokhlov <khokhlov@google.com>
Cr-Commit-Position: refs/heads/main@{#84590}
2022-12-01 11:18:24 +00:00
..
DEPS [tracing] Migrate tracing to Perfetto track events 2020-04-17 21:31:24 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Update OWNERS in src/* 2021-02-25 14:22:51 +00:00
trace-categories.cc [tracing] Migrate tracing to Perfetto track events 2020-04-17 21:31:24 +00:00
trace-categories.h Add missing trace category group to trace-categories.h 2022-01-12 19:47:55 +00:00
trace-event.cc [logging] Add runtime-call-stats compile-time flag 2021-04-12 15:53:03 +00:00
trace-event.h Fix includes of base/platform/wrappers.h 2022-09-06 19:24:55 +00:00
traced-value.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
traced-value.h [cleanup] Remove uses of DISALLOW_COPY_AND_ASSIGN 2020-11-25 01:46:32 +00:00
tracing-category-observer.cc [Tracing w/SDK] Replace TraceStateObserver with TrackEventSessionObserver 2022-12-01 11:18:24 +00:00
tracing-category-observer.h [Tracing w/SDK] Replace TraceStateObserver with TrackEventSessionObserver 2022-12-01 11:18:24 +00:00