• X
    Fix a profiler race condition · 94c0a64d
    Xin Pan 提交于
    In multi-thread condition, EnableProfiler can
    be called after RecordEvent is constructed. In this
    case, RecordEvent constructor will not init anything,
    but RecordEvent destructor will do something since EnableProfiler
    was called.
    This PR fixes it.
    94c0a64d
profiler.cc 15.8 KB