File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
executorch_android/src/main/java/org/pytorch/executorch Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,12 @@ public int loadMethod(String methodName) {
167167 public native String [] getUsedBackends (String methodName );
168168
169169 /** Retrieve the in-memory log buffer, containing the most recent ExecuTorch log entries. */
170+ public String [] readLogBuffer () {
171+ return readLogBufferNative ();
172+ }
173+
170174 @ DoNotStrip
171- public native String [] readLogBuffer ();
175+ private native String [] readLogBufferNative ();
172176
173177 /**
174178 * Dump the ExecuTorch ETRecord file to /data/local/tmp/result.etdump.
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ class ExecuTorchJni : public facebook::jni::HybridClass<ExecuTorchJni> {
456456 makeNativeMethod (" initHybrid" , ExecuTorchJni::initHybrid),
457457 makeNativeMethod (" executeNative" , ExecuTorchJni::execute),
458458 makeNativeMethod (" loadMethodNative" , ExecuTorchJni::load_method),
459- makeNativeMethod (" readLogBuffer " , ExecuTorchJni::readLogBuffer),
459+ makeNativeMethod (" readLogBufferNative " , ExecuTorchJni::readLogBuffer),
460460 makeNativeMethod (" etdump" , ExecuTorchJni::etdump),
461461 makeNativeMethod (" getUsedBackends" , ExecuTorchJni::getUsedBackends),
462462 });
You can’t perform that action at this time.
0 commit comments