org.androidannotations.annotations
Annotation Type Trace


@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Trace

This annotation is intended to be used on methods to log at runtime the execution time.

All annotation values are optional :

Example :
 @Trace
 void doWork() {
        // ... Do Work ...
 }
 
This will log these lines :
 I/TracedMethodActivity(  302): Entering [void doWork() ]
 I/TracedMethodActivity(  302): Exiting [void doWork() ], duration in ms: 1002
 


Optional Element Summary
 int level
           
 String tag
           
 

tag

public abstract String tag
Default:
"NO_TAG"

level

public abstract int level
Default:
4


Copyright © 2010-2014. All Rights Reserved.