@@ -68,14 +68,6 @@ void DebuggerInfo::serialize(Serializer &serializer) const {
6868 serializer.write (" is_exit_entry" , is_exit_entry);
6969}
7070
71- void LLDBBaseTelemetryInfo::serialize (Serializer &serializer) const {
72- serializer.write (" entry_kind" , getKind ());
73- serializer.write (" session_id" , SessionId);
74- serializer.write (" start_time" , ToNanosec (start_time));
75- if (end_time.has_value ())
76- serializer.write (" end_time" , ToNanosec (end_time.value ()));
77- }
78-
7971void TargetInfo::serialize (Serializer &serializer) const {
8072 LLDBBaseTelemetryInfo::serialize (serializer);
8173
@@ -88,14 +80,6 @@ void TargetInfo::serialize(Serializer &serializer) const {
8880 }
8981}
9082
91- void MiscTelemetryInfo::serialize (Serializer &serializer) const {
92- LLDBBaseTelemetryInfo::serialize (serializer);
93- serializer.write (" target_uuid" , target_uuid);
94- serializer.beginObject (" meta_data" );
95- for (const auto &kv : meta_data)
96- serializer.write (kv.first , kv.second );
97- serializer.endObject ();
98- }
9983
10084TelemetryManager::TelemetryManager (std::unique_ptr<Config> config)
10185 : m_config(std::move(config)), m_id(MakeUUID()) {}
@@ -119,8 +103,8 @@ class NoOpTelemetryManager : public TelemetryManager {
119103 }
120104
121105 explicit NoOpTelemetryManager ()
122- : TelemetryManager(std::make_unique<LLDBConfig >(
123- /* EnableTelemetry*/ false , /* DetailedCommand */ false )) {}
106+ : TelemetryManager(std::make_unique<::llvm::telemetry::Config >(
107+ /* EnableTelemetry*/ false )) {}
124108
125109 virtual llvm::StringRef GetInstanceName () const override {
126110 return " NoOpTelemetryManager" ;
0 commit comments