1 17 19 24 25 package com.sitraka.jprobe.profiler.api; 26 27 import com.sitraka.jprobe.api.*; 28 29 35 36 class JPPerformanceAPIImpl extends JPPerformanceAPI { 37 38 45 46 protected JPPerformanceAPIImpl() throws UnsatisfiedLinkError { 47 System.loadLibrary("profiler"); 48 } 49 50 56 public boolean pauseRecording() { 57 return PauseRecording(); 58 } 59 60 61 67 public boolean resumeRecording() { 68 return ResumeRecording(); 69 } 70 71 74 public boolean isRecording() { 75 return IsRecording(); 76 } 77 78 79 85 public boolean clear() { 86 return Clear(); 87 } 88 89 97 public boolean save(String snapshot_name) { 98 return Save(snapshot_name); 99 } 100 101 104 public boolean isRunning() { 105 return IsRunning(); 106 } 107 108 115 116 public void suspend() { 117 Suspend(); 118 } 119 120 121 private native boolean PauseRecording(); 122 private native boolean ResumeRecording(); 123 private native boolean IsRecording(); 124 private native boolean Clear(); 125 private native boolean IsRunning(); 126 private native boolean Save(String snapshot_name); 127 private native void Suspend(); 128 129 } 130 131 | Popular Tags |