Commit cfe8887f authored by Alexander Timin's avatar Alexander Timin Committed by Commit Bot

[tracing] Move logic to defer task posting into the scheduler

The current implementation of DISALLOW_POSTTASK sometimes leads to
losing data from traces. Move it inside the scheduler and make it more

Also remove DISALLOW_POSTTASK from tracing queue size: there we can
compute the value under the lock and emit trace event outside of the
lock scope.

[email protected],[email protected]
[email protected],[email protected],[email protected]

Change-Id: I8d7302dbe3ca4ac5543cf3dfcc79202cf8b4ca49
Commit-Queue: Alexander Timin <[email protected]>
Reviewed-by: default avatarSami Kyöstilä <[email protected]>
Reviewed-by: default avatarGabriel Charette <[email protected]>
Reviewed-by: default avataroysteine <[email protected]>
Cr-Original-Commit-Position: refs/heads/[email protected]{#657886}
Cr-Mirrored-Commit: 93b4813518647de4dd50159ae123ed82f1bef9db
parent 63246bb2
......@@ -1072,7 +1072,6 @@
#define TRACE_EVENT_FLAG_HAS_PROCESS_ID (static_cast<unsigned int>(1 << 11))
#define TRACE_EVENT_FLAG_HAS_LOCAL_ID (static_cast<unsigned int>(1 << 12))
#define TRACE_EVENT_FLAG_HAS_GLOBAL_ID (static_cast<unsigned int>(1 << 13))
#define TRACE_EVENT_FLAG_DISALLOW_POSTTASK (static_cast<unsigned int>(1 << 14))
// TODO(eseckler): Remove once we have native support for typed proto events in
// TRACE_EVENT macros.
#define TRACE_EVENT_FLAG_TYPED_PROTO_ARGS (static_cast<unsigned int>(1 << 15))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment