[llvm] [llvm]Add a simple Telemetry framework (PR #102323)
Vy Nguyen via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 07:22:58 PST 2024
================
@@ -27,14 +27,14 @@ namespace telemetry {
class Serializer {
public:
- virtual llvm::Error init() = 0;
+ virtual Error init() = 0;
virtual void write(StringRef KeyName, bool Value) = 0;
virtual void write(StringRef KeyName, int Value) = 0;
- virtual void write(StringRef KeyName, size_t Value) = 0;
+ virtual void write(StringRef KeyName, unsigned long long Value) = 0;
----------------
oontvoo wrote:
These types are based on the set of data we need to collect in LLDB.
- bool, int : basic types, nothing too strange
- size_t: this is needed to represent the size of a debug target and also for storing number of nanoseconds.
- StringRef: binary paths, names, etc
- map<string,string>: for storing misc data (eg., binary's ID fields, error messages, etc).
https://github.com/llvm/llvm-project/pull/102323
More information about the llvm-commits
mailing list