Open
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. |
Author
|
The PR is ready for review. |
Owner
|
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. |
Author
|
Moved discussion to Discord |
|
hey, i'm curious if this is still planned to be added or has been cancelled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR exposes a profiler API in
spark-api.Changes made
spark-protowhich 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.samplerpackage have been moved in the API, some of them as interfaces with hidden implementations usingSparkSamplerModulehas been changed to use the implementation of the APIMaven setup
As configured in
spark-api/build.gradleandspark-proto/build.gradle, I recommend the following maven structure:me.lucko.sparkme.lucko.spark:spark-protoshading the proto libraryme.lucko.spark:spark-api, depending onme.lucko.spark:spark-protoAPI Usage
Example API usage:
Effectively supersedes #131.