[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-18 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo closed https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-18 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/27] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-18 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/27] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-18 Thread Vy Nguyen via lldb-commits
oontvoo wrote: Thanks, all. Just to wrap up, the only change required here is to remove the PluginInterface inheritance (and renaming the current `Manager::getPluginName()` to `Manager::getInstanceName()` to avoid confusion. https://github.com/llvm/llvm-project/pull/126588 __

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-18 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/26] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-17 Thread Pavel Labath via lldb-commits
labath wrote: > Given that they also need to support (1) they'd always have to be full blown > plugins, right? So it's not like they could be migrated over to a "plugin > light" if we came up with something like that? Sort of. There would have to be *a* full-blown plugin. But there's no reason

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-14 Thread Vy Nguyen via lldb-commits
oontvoo wrote: > > The (baroque) way that the other plugins work serves two purposes: > > > > 1. controlling the type (class) of the plugin being created based on some > > runtime property > > 2. creating an arbitrary number of plugin instances > > > > For telemetry "plugins", I don't think we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-14 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > The (baroque) way that the other plugins work serves two purposes: > > 1. controlling the type (class) of the plugin being created based on some > runtime property > 2. creating an arbitrary number of plugin instances > > For telemetry "plugins", I don't think we want/nee

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-14 Thread Pavel Labath via lldb-commits
labath wrote: > This was what we were doing in the [initial > PR](https://github.com/llvm/llvm-project/pull/98528/files#diff-20a2060f8e87c6742d6f2c7ae97e919f8485995d7808bd9fccbfbede697a9ec7) > but Pavel had correctly pointed out that the architecture was unnecessarily > "baroque". GIven there

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: > This was what we were doing in the [initial > PR](https://github.com/llvm/llvm-project/pull/98528/files#diff-20a2060f8e87c6742d6f2c7ae97e919f8485995d7808bd9fccbfbede697a9ec7) > but Pavel had correctly pointed out that the architecture was unnecessarily > "baroque". GIven

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
oontvoo wrote: > Based on the title of this PR I was expecting something slightly different, > so maybe I'm missing something. But if we want to make this an LLDB plugin > (which I agree we should ), I would expect the `PluginManager` to manage the > instance rather than the plugin doing itsel

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Jonas Devlieghere via lldb-commits
JDevlieghere wrote: Based on the title of this PR I was expecting something slightly different, so maybe I'm missing something. But if we want to make this an LLDB plugin (which I agree we should ), I would expect the `PluginManager` to manage the instance rather than the plugin doing itself.

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/25] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
@@ -0,0 +1,34 @@ +//===-- TestFakePlugin.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/24] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/23] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,34 @@ +//===-- TestFakePlugin.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,34 @@ +//===-- TestFakePlugin.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,74 @@ +//===-- TelemetryTest.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apach

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: Okay, I think we're ready to summon @JDevlieghere now. :) https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/l

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
https://github.com/labath edited https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
@@ -59,11 +60,21 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo { /// The base Telemetry manager instance in LLDB /// This class declares additional instrumentation points /// applicable to LLDB. -class TelemetryManager : public llvm::telemetry::Manage

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
@@ -0,0 +1,13 @@ +if (LLVM_BUILD_TELEMETRY) + add_lldb_library(lldbPluginTelemetryFakePlugin PLUGIN + FakePlugin.cpp + + LINK_LIBS +lldbCore +lldbUtility +lldbPluginProcessUtility + LINK_COMPONENTS +Support +Telemetry +

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Vy Nguyen via lldb-commits
@@ -79,3 +79,7 @@ add_subdirectory(ValueObject) if(LLDB_CAN_USE_DEBUGSERVER AND LLDB_TOOL_DEBUGSERVER_BUILD AND NOT LLDB_USE_SYSTEM_DEBUGSERVER) add_subdirectory(debugserver) endif() + +if(LLVM_BUILD_TELEMETRY) + add_subdirectory(telemetry) +endif() oontvoo

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,13 @@ +if (LLVM_BUILD_TELEMETRY) + add_lldb_library(lldbPluginTelemetryFakePlugin PLUGIN + FakePlugin.cpp + + LINK_LIBS +lldbCore +lldbUtility +lldbPluginProcessUtility + LINK_COMPONENTS +Support +Telemetry +

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -79,3 +79,7 @@ add_subdirectory(ValueObject) if(LLDB_CAN_USE_DEBUGSERVER AND LLDB_TOOL_DEBUGSERVER_BUILD AND NOT LLDB_USE_SYSTEM_DEBUGSERVER) add_subdirectory(debugserver) endif() + +if(LLVM_BUILD_TELEMETRY) + add_subdirectory(telemetry) +endif() labath

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -59,11 +60,21 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo { /// The base Telemetry manager instance in LLDB /// This class declares additional instrumentation points /// applicable to LLDB. -class TelemetryManager : public llvm::telemetry::Manage

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
https://github.com/labath commented: I like this. Now it's so simple that a test might not have even been necessary, but since you've already started it, let's keep it, and we can later extend it to test sending of telemetry events. https://github.com/llvm/llvm-project/pull/126588

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,45 @@ +//===-- FakePlugin.cpp --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,34 @@ +//===-- TestFakePlugin.cpp ===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -79,3 +79,7 @@ add_subdirectory(ValueObject) if(LLDB_CAN_USE_DEBUGSERVER AND LLDB_TOOL_DEBUGSERVER_BUILD AND NOT LLDB_USE_SYSTEM_DEBUGSERVER) add_subdirectory(debugserver) endif() + +if(LLVM_BUILD_TELEMETRY) + add_subdirectory(telemetry) +endif() labath

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
https://github.com/labath edited https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -0,0 +1,45 @@ +//===-- FakePlugin.cpp --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-13 Thread Pavel Labath via lldb-commits
@@ -59,11 +60,21 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo { /// The base Telemetry manager instance in LLDB /// This class declares additional instrumentation points /// applicable to LLDB. -class TelemetryManager : public llvm::telemetry::Manage

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-12 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/126588 >From c7734011094995c64137de6f8122033d2a981610 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 10 Feb 2025 14:44:11 -0500 Subject: [PATCH 01/17] Define TelemetryVendor plugin. Details: Upstream in LLDB, we

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-12 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo edited https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Define Telemetry plugin for LLDB. (PR #126588)

2025-02-12 Thread Vy Nguyen via lldb-commits
https://github.com/oontvoo edited https://github.com/llvm/llvm-project/pull/126588 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits