const char* TraceLoggerThread::eventText(uint32_t id) { if (id < TraceLogger_Last) return TLTextIdString(static_cast<TraceLoggerTextId>(id)); TextIdHashMap::Ptr p = textIdPayloads.lookup(id); MOZ_ASSERT(p); return p->value()->string(); }
const char* TraceLoggerThread::maybeEventText(uint32_t id) { if (id < TraceLogger_Last) return TLTextIdString(static_cast<TraceLoggerTextId>(id)); TextIdHashMap::Ptr p = textIdPayloads.lookup(id); if (!p) return nullptr; return p->value()->string(); }