com.twitter.diagnostics.PerfTracepoint is an annotation, which, when applied to a native method informs the (Twitter) JVM that it needs to treat it like a Linux user mode probe point that is observable by diagnostic tools such as the Perf profiler.
class FinagleProvider {
@PerfTracepoint
public static native void onThreadCreate(long threadId);
};
The latest artifacts are published to Maven Central.
Simply adding the following to your Maven pom.xml file should work:
<dependencies>
<dependency>
<groupId>com.twitter.diagnostics</groupId>
<artifactId>PerfTracepoint</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
Copyright 2014 Twitter, Inc and other contributors
Licensed under the Apache Public License 2.0: http://www.apache.org/licenses/LICENSE-2.0.html