/**@class android.os.PerformanceCollector.PerformanceResultsWriter Interface for reporting performance data. */ var PerformanceResultsWriter = { /**Callback invoked as first action in PerformanceCollector#beginSnapshot(String) for reporting the start of a performance snapshot. @param {String} label description of code block between beginSnapshot and PerformanceCollector#endSnapshot() @see PerformanceCollector#beginSnapshot(String) */ writeBeginSnapshot : function( ) {}, /**Callback invoked as last action in PerformanceCollector#endSnapshot() for reporting performance data collected in the snapshot. @param {Object {Bundle}} results memory and runtime metrics stored as key/value pairs, in the same structure as returned by PerformanceCollector#endSnapshot() @see PerformanceCollector#endSnapshot() */ writeEndSnapshot : function( ) {}, /**Callback invoked as first action in PerformanceCollector#startTiming(String) for reporting the start of a timing measurement. @param {String} label description of code block between startTiming and PerformanceCollector#stopTiming(String) @see PerformanceCollector#startTiming(String) */ writeStartTiming : function( ) {}, /**Callback invoked as last action in {@link android.os.PerformanceCollector#stopTiming(String)} for reporting the sequence of timings measured. @param {Object {Bundle}} results runtime metrics of code block between calls to startTiming and stopTiming, in the same structure as returned by PerformanceCollector#stopTiming(String) @see PerformanceCollector#stopTiming(String) */ writeStopTiming : function( ) {}, /**Callback invoked as last action in {@link android.os.PerformanceCollector#addMeasurement(String, long)} for reporting an integer type measurement. @param {String} label short description of the metric that was measured @param {Number} value long value of the measurement */ writeMeasurement : function( ) {}, /**Callback invoked as last action in {@link android.os.PerformanceCollector#addMeasurement(String, float)} for reporting a float type measurement. @param {String} label short description of the metric that was measured @param {Number} value float value of the measurement */ writeMeasurement : function( ) {}, /**Callback invoked as last action in {@link android.os.PerformanceCollector#addMeasurement(String, String)} for reporting a string field. @param {String} label short description of the metric that was measured @param {String} value string summary of the measurement */ writeMeasurement : function( ) {}, };