-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Expose a profiler API #229
base: master
Are you sure you want to change the base?
Conversation
+1. I would like to use Spark to profile the integrated server startup (i.e. before I can enter a command) and this would be very useful. |
The PR is ready for review. |
Hi, thanks for the PR! I will try to have a deeper look at this soon. I will be totally honest/upfront with you, I have a few reservations about merging this currently:
That's where I'm at atm :) please feel free to ping/chat to me on Discord (https://discord.gg/PAGT2fu) if you have any comments or suggestions, or of course you can reply here. |
Moved discussion to Discord |
hey, i'm curious if this is still planned to be added or has been cancelled |
This PR exposes a profiler API in
spark-api
.Changes made
spark-proto
which all other projects depend on (including the API). This allows the API to access the java object of reportsapi-test
, which is a test Forge mod for testing the API.me.lucko.spark.common.sampler
package have been moved in the API, some of them as interfaces with hidden implementations usingSpark
SamplerModule
has been changed to use the implementation of the APIMaven setup
As configured in
spark-api/build.gradle
andspark-proto/build.gradle
, I recommend the following maven structure:me.lucko.spark
me.lucko.spark:spark-proto
shading the proto libraryme.lucko.spark:spark-api
, depending onme.lucko.spark:spark-proto
API Usage
Example API usage:
Effectively supersedes #131.