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) {
167
167
public native String [] getUsedBackends (String methodName );
168
168
169
169
/** Retrieve the in-memory log buffer, containing the most recent ExecuTorch log entries. */
170
+ public String [] readLogBuffer () {
171
+ return readLogBufferNative ();
172
+ }
173
+
170
174
@ DoNotStrip
171
- public native String [] readLogBuffer ();
175
+ private native String [] readLogBufferNative ();
172
176
173
177
/**
174
178
* 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> {
456
456
makeNativeMethod (" initHybrid" , ExecuTorchJni::initHybrid),
457
457
makeNativeMethod (" executeNative" , ExecuTorchJni::execute),
458
458
makeNativeMethod (" loadMethodNative" , ExecuTorchJni::load_method),
459
- makeNativeMethod (" readLogBuffer " , ExecuTorchJni::readLogBuffer),
459
+ makeNativeMethod (" readLogBufferNative " , ExecuTorchJni::readLogBuffer),
460
460
makeNativeMethod (" etdump" , ExecuTorchJni::etdump),
461
461
makeNativeMethod (" getUsedBackends" , ExecuTorchJni::getUsedBackends),
462
462
});
You can’t perform that action at this time.
0 commit comments