fune/toolkit/components/glean/tests/pytest/gifft_output_Event
Chris H-C 14fee064de Bug 1768636 - Scope GIFFT timer maps to metrics r=TravisLong
TimerIds are only unique for a given metric, not globally.

Differential Revision: https://phabricator.services.mozilla.com/D145988
2022-05-10 20:38:30 +00:00

38 lines
950 B
C++

// -*- mode: C++ -*-
/* This file is auto-generated by run_glean_parser.py.
It is only for internal use by types in
toolkit/components/glean/bindings/private */
#include "mozilla/AppShutdown.h"
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/Maybe.h"
#include "mozilla/Telemetry.h"
#include "mozilla/Tuple.h"
#include "mozilla/DataMutex.h"
#include "nsThreadUtils.h"
#ifndef mozilla_glean_EventGifftMap_h
#define mozilla_glean_EventGifftMap_h
namespace mozilla::glean {
using Telemetry::EventID;
static inline Maybe<EventID> EventIdForMetric(uint32_t aId) {
switch(aId) {
case 17: { // test.nested.event_metric
return Some(EventID::EventMetric_EnumNames_AreStrange);
}
case 18: { // test.nested.event_metric_with_extra
return Some(EventID::EventMetric_EnumName_WithExtra);
}
default: {
return Nothing();
}
}
}
} // namespace mozilla::glean
#endif // mozilla_glean_EventGifftMaps_h