[api] Fix is_on_release_branch in chrome

TRACE_EVENT_CALL_STATS_SCOPED was missing if V8_RUNTIME_CALL_STATS
was not set but V8_USE_PERFETTO was enabled.

Change-Id: Ie762627eaecb258324264b8e78b7ffd4ffd71698
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4221700
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85702}
This commit is contained in:
Camillo Bruni 2023-02-06 16:21:08 +01:00 committed by V8 LUCI CQ
parent 19119fc3e7
commit 3e0b027757

View File

@ -620,7 +620,7 @@ class CallStatsScopedTracer {
Data* p_data_;
Data data_;
};
#endif // defined(V8_RUNTIME_CALL_STATS)
#endif // V8_RUNTIME_CALL_STATS
} // namespace tracing
} // namespace internal
@ -660,8 +660,9 @@ class CallStatsScopedTracer {
} PERFETTO_UID(scoped_event) { \
{ isolate, 0 } \
}
#endif // defined(V8_RUNTIME_CALL_STATS)
#else // V8_RUNTIME_CALL_STATS
#define TRACE_EVENT_CALL_STATS_SCOPED(isolate, category, name)
#endif // V8_RUNTIME_CALL_STATS
#endif // defined(V8_USE_PERFETTO)
#endif // V8_TRACING_TRACE_EVENT_H_