File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,6 @@ class Manager {
138
138
public:
139
139
virtual ~Manager () = default ;
140
140
141
- // Optional callback for subclasses to perform additional tasks before
142
- // dispatching to Destinations.
143
- virtual Error preDispatch (TelemetryInfo *Entry) = 0;
144
-
145
141
// Dispatch Telemetry data to the Destination(s).
146
142
// The argument is non-const because the Manager may add or remove
147
143
// data from the entry.
@@ -150,6 +146,11 @@ class Manager {
150
146
// Register a Destination.
151
147
void addDestination (std::unique_ptr<Destination> Destination);
152
148
149
+ protected:
150
+ // Optional callback for subclasses to perform additional tasks before
151
+ // dispatching to Destinations.
152
+ virtual Error preDispatch (TelemetryInfo *Entry);
153
+
153
154
private:
154
155
std::vector<std::unique_ptr<Destination>> Destinations;
155
156
};
Original file line number Diff line number Diff line change
1
+ // ===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+ // /
9
+ // / \file
10
+ // / This file provides the basic framework for Telemetry.
11
+ // / Refer to its documentation at llvm/docs/Telemetry.rst for more details.
12
+ // ===---------------------------------------------------------------------===//
13
+
1
14
#include " llvm/Telemetry/Telemetry.h"
2
15
3
16
namespace llvm {
@@ -22,5 +35,7 @@ void Manager::addDestination(std::unique_ptr<Destination> Dest) {
22
35
Destinations.push_back (std::move (Dest));
23
36
}
24
37
38
+ Error Manager::preDispatch (TelemetryInfo *Entry) { return Error::success (); }
39
+
25
40
} // namespace telemetry
26
41
} // namespace llvm
You can’t perform that action at this time.
0 commit comments