Skip to content

Commit

Permalink
all operations involving file reads were moved to background threads
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanosiano committed Mar 25, 2022
1 parent 9f90ba0 commit 7836c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry/src/main/java/io/sentry/ProfilingTraceData.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public void setSampled_profile(@Nullable String sampledProfile) {
public void readDeviceCpuFrequencies() {
try {
this.device_cpu_frequencies = deviceCpuFrequenciesReader.call();
} catch (Exception e) {
this.device_cpu_frequencies = new ArrayList<>();
} catch (Throwable ignored) {
// should never happen
}
}
}

0 comments on commit 7836c79

Please sign in to comment.