-
Notifications
You must be signed in to change notification settings - Fork 122
/
Copy pathperformance_common.h
32 lines (24 loc) · 1.08 KB
/
performance_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2021 Google LLC
// This file contains the declarations of common functions that deal with
// initialization of the Firebase Performance C++ API and how it deals with the
// lifecycle of the common FirebaseApp instance. Some of these functions are
// implemented in a platform independent manner, while some are implemented
// specific to each platform.
#ifndef FIREBASE_PERFORMANCE_SRC_PERFORMANCE_COMMON_H_
#define FIREBASE_PERFORMANCE_SRC_PERFORMANCE_COMMON_H_
namespace firebase {
namespace performance {
namespace internal {
extern const char* kPerformanceModuleName;
// Returns whether the performance module is initialized.
// This is implemented per platform.
bool IsInitialized();
// Registers a cleanup task for this module if auto-initialization is disabled.
void RegisterTerminateOnDefaultAppDestroy();
// Unregisters the cleanup task for this module if auto-initialization is
// disabled.
void UnregisterTerminateOnDefaultAppDestroy();
} // namespace internal
} // namespace performance
} // namespace firebase
#endif // FIREBASE_PERFORMANCE_SRC_PERFORMANCE_COMMON_H_