1 17 19 24 25 package com.klg.jprobe.profiler.api; 26 27 import com.klg.jprobe.api.*; 28 29 35 class JPHeapAPIImpl extends JPHeapAPI { 36 37 38 45 protected JPHeapAPIImpl() throws UnsatisfiedLinkError { 46 System.loadLibrary("profiler"); 47 } 48 49 50 51 57 public boolean pauseRecording() { 58 return PauseRecording(); 59 } 60 61 62 68 public boolean resumeRecording() { 69 return ResumeRecording(); 70 } 71 72 73 76 public boolean isRecording() { 77 return IsRecording(); 78 } 79 80 87 public boolean clear() { 88 return Clear(); 89 } 90 91 92 99 public boolean save(String snapshot_name) { 100 return Save(snapshot_name); 101 } 102 103 107 public boolean isRunning() { 108 return IsRunning(); 109 } 110 111 118 119 public void suspend() { 120 Suspend(); 121 } 122 123 127 public boolean setCheckpoint() { 128 return SetCheckpoint(); 129 } 130 131 135 public boolean clearCheckpoint() { 136 return ClearCheckpoint(); 137 } 138 139 private native boolean PauseRecording(); 140 private native boolean ResumeRecording(); 141 private native boolean IsRecording(); 142 private native boolean Clear(); 143 private native boolean IsRunning(); 144 private native boolean Save(String snapshot_name); 145 private native void Suspend(); 146 private native boolean SetCheckpoint(); 147 private native boolean ClearCheckpoint(); 148 149 150 } 151 | Popular Tags |