aboutsummaryrefslogtreecommitdiff
path: root/src/common/telemetry.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-14 18:48:28 -0400
committerLioncash <mathew1800@gmail.com>2018-08-14 18:57:46 -0400
commit60f476cd8f3aa4cf0c9c0091e53559d7e3d30116 (patch)
tree6581d46de9b751341990935cb604d9e29c1ff6a7 /src/common/telemetry.h
parentd1520410a3cf38a14cd3f3b1dc3fcc5ae38c6b0b (diff)
common/telemetry: Migrate core-independent info gathering to common
Previously core itself was the library containing the code to gather common information (build info, CPU info, and OS info), however all of this isn't core-dependent and can be moved to the common code and use the common interfaces. We can then just call those functions from the core instead. This will allow replacing our CPU detection with Xbyak's which has better detection facilities than ours. It also keeps more architecture-dependent code in common instead of core.
Diffstat (limited to 'src/common/telemetry.h')
-rw-r--r--src/common/telemetry.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/telemetry.h b/src/common/telemetry.h
index 3bab75b59e..8d6ab986b2 100644
--- a/src/common/telemetry.h
+++ b/src/common/telemetry.h
@@ -180,4 +180,16 @@ struct NullVisitor : public VisitorInterface {
void Complete() override {}
};
+/// Appends build-specific information to the given FieldCollection,
+/// such as branch name, revision hash, etc.
+void AppendBuildInfo(FieldCollection& fc);
+
+/// Appends CPU-specific information to the given FieldCollection,
+/// such as instruction set extensions, etc.
+void AppendCPUInfo(FieldCollection& fc);
+
+/// Appends OS-specific information to the given FieldCollection,
+/// such as platform name, etc.
+void AppendOSInfo(FieldCollection& fc);
+
} // namespace Telemetry