Skip to content
Merged
Changes from 1 commit
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
Next Next commit
added ArrayIndexOutOfBoundsException to try catch block in AndroidCpu…
…Collector
  • Loading branch information
stefanosiano committed Jul 23, 2024
commit acf7d08e739d3f0e86b1a731080cb2977fd3c970
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private long readTotalCpuNanos() {
// Amount of clock ticks this process' waited-for children has been scheduled in kernel mode
long csTime = Long.parseLong(stats[16]);
return (long) ((uTime + sTime + cuTime + csTime) * nanosecondsPerClockTick);
} catch (NumberFormatException e) {
} catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {
logger.log(SentryLevel.ERROR, "Error parsing /proc/self/stat file.", e);
return 0;
}
Expand Down