toValue method
Implementation
String toValue() {
switch (this) {
case SampleType.cpu:
return 'CPU';
case SampleType.memory:
return 'MEMORY';
case SampleType.threads:
return 'THREADS';
case SampleType.rxRate:
return 'RX_RATE';
case SampleType.txRate:
return 'TX_RATE';
case SampleType.rx:
return 'RX';
case SampleType.tx:
return 'TX';
case SampleType.nativeFrames:
return 'NATIVE_FRAMES';
case SampleType.nativeFps:
return 'NATIVE_FPS';
case SampleType.nativeMinDrawtime:
return 'NATIVE_MIN_DRAWTIME';
case SampleType.nativeAvgDrawtime:
return 'NATIVE_AVG_DRAWTIME';
case SampleType.nativeMaxDrawtime:
return 'NATIVE_MAX_DRAWTIME';
case SampleType.openglFrames:
return 'OPENGL_FRAMES';
case SampleType.openglFps:
return 'OPENGL_FPS';
case SampleType.openglMinDrawtime:
return 'OPENGL_MIN_DRAWTIME';
case SampleType.openglAvgDrawtime:
return 'OPENGL_AVG_DRAWTIME';
case SampleType.openglMaxDrawtime:
return 'OPENGL_MAX_DRAWTIME';
}
}