Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

twitter-archive/PerfTracepoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PerfTracepoint Build Status

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);
};

Maven Central

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>

License

Copyright 2014 Twitter, Inc and other contributors

Licensed under the Apache Public License 2.0: http://www.apache.org/licenses/LICENSE-2.0.html