-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make llvm::telemetry::Manager::preDispatch protected. #127114
Conversation
…e called directly by users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(@jh7370 FYI)
LGTM.
This is definitely less important, but I'm also wondering if there's a reason for dispatch
to be virtual (given that preDispatch
is sort of the official customization point for messing with entries).
@@ -150,6 +146,11 @@ class Manager { | |||
// Register a Destination. | |||
void addDestination(std::unique_ptr<Destination> Destination); | |||
|
|||
protected: | |||
// Optional callback for subclasses to perform additional tasks before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's optional, maybe it should have a default implementation (doing nothing, successfully)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 this makes sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - added the empty impl for preDispatch
Okay, I've read #126588 (comment) now. I can live with that, though I don't find that example particularly compelling as parallelism could be achieved by handing the telemetry entry to a different thread from inside Destination::receiveEntry (which is also virtual). |
BTW, I just noticed that Telemetry.cpp is missing a licence header. |
@@ -150,6 +146,11 @@ class Manager { | |||
// Register a Destination. | |||
void addDestination(std::unique_ptr<Destination> Destination); | |||
|
|||
protected: | |||
// Optional callback for subclasses to perform additional tasks before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 this makes sense to me.
done! |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/2043 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/155/builds/6674 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/17176 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/54/builds/6503 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/6550 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/8731 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/10919 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/8246 Here is the relevant piece of the build log for the reference
|
@oontvoo I've reverted your PR. I'm happy to test your new version. By the way, I've locally reproduced the failure with |
…ed. (#127114)" This reverts commit f7a2d70. Multiple buildbot failures have been reported. See: llvm/llvm-project#127114
The method was meant to be overriden by subclasses only.
It should not be called directly by users