Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions extension/benchmark/android/benchmark/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ plugins { id("com.android.application") }

android {
namespace = "org.pytorch.minibench"
compileSdk = 34
compileSdk = 35

defaultConfig {
applicationId = "org.pytorch.minibench"
minSdk = 28
targetSdk = 33
minSdk = 35
targetSdk = 35
versionCode = 1
versionName = "1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Debug;
import android.system.ErrnoException;
import android.system.Os;
import com.google.gson.Gson;
Expand Down Expand Up @@ -103,6 +104,8 @@ protected void onPostExecute(Void aVoid) {
0.0f));
// Load status
results.add(new BenchmarkMetric(benchmarkModel, "load_status", stats.errorCode, 0));
// RAM RSS usage
results.add(new BenchmarkMetric(benchmarkModel, "peak_inference_mem_usage(mb)", Debug.getRss(), 0));

try (FileWriter writer = new FileWriter(getFilesDir() + "/benchmark_results.json")) {
Gson gson = new Gson();
Expand Down
Loading