SWDEV-254329 - Init Profiling when ON

Change-Id: I72f9da94f8fbb95e66cf145831b252af05a19dc4
This commit is contained in:
Sarbojit Sarkar
2021-03-03 11:44:03 -05:00
committed by Sarbojit Sarkar
parent 8bb7399323
commit fa89ee5ee0
+4 -2
View File
@@ -99,8 +99,10 @@ class Event : public RuntimeObject {
struct ProfilingInfo {
ProfilingInfo(bool enabled = false) : enabled_(enabled), waves_(0), marker_ts_(false) {
clear();
callback_ = nullptr;
if (enabled) {
clear();
callback_ = nullptr;
}
}
uint64_t queued_;