Links
Tags
Creators
Details
1.0.0
Compatibility
Changes
LiveProfiler
Real-time in-game performance profiler for tracking how long a process takes to complete.
Download as mod (1.21.5)
Use as dependency (mod developers)
1. Use jitpack to add to dependancies:
Repositories block:
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
Dependencies block:
dependencies {
implementation 'com.github.mesren2:LiveProfiler:1.0'
}
2. Create a feature
Make a feature class with a register() func:
public static void register() {
LiveProfiler.begin("MyFeature");
// feature process goes here
LiveProfiler.end("MyFeature");
}
In your ClientModInitializer() function, add:
// Replace with (all if more than one) your features
TestFeatures.register();
Building yourself
Download the source code and open it in [IntelliJ Idea](https://www.jetbrains.com/idea/] (or preferred java ide.)
Go to gradle sidebar > tasks > build > build
The output file will be in build > libs.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:2C2Zspjt:Nc4MIxrJ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:2C2Zspjt:Nc4MIxrJ"
}

