Skip to content

Commit 7836c79

Browse files
committed
all operations involving file reads were moved to background threads
1 parent 9f90ba0 commit 7836c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/main/java/io/sentry/ProfilingTraceData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ public void setSampled_profile(@Nullable String sampledProfile) {
196196
public void readDeviceCpuFrequencies() {
197197
try {
198198
this.device_cpu_frequencies = deviceCpuFrequenciesReader.call();
199-
} catch (Exception e) {
200-
this.device_cpu_frequencies = new ArrayList<>();
199+
} catch (Throwable ignored) {
200+
// should never happen
201201
}
202202
}
203203
}

0 commit comments

Comments
 (0)