Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Format code
  • Loading branch information
getsentry-bot committed Sep 23, 2025
commit ecc0215a3334b9ff93d21f1dc951ee828d2a4922
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public ProfileEventVisitor(
public void visit(Event event, long samples, long value) {
try {
StackTrace stackTrace = jfr.stackTraces.get(event.stackTraceId);
long threadId = resolveThreadId(event.tid);
long threadId = resolveThreadId(event.tid);

if (stackTrace != null) {
if (args.threads) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public JavaContinuousProfiler(
}

private void initializeProfiler() throws Exception {
this.profiler = AsyncProfiler.getInstance();
// Check version to verify profiler is working
String version = profiler.execute("version");
logger.log(SentryLevel.DEBUG, "AsyncProfiler initialized successfully. Version: " + version);
this.profiler = AsyncProfiler.getInstance();
// Check version to verify profiler is working
String version = profiler.execute("version");
logger.log(SentryLevel.DEBUG, "AsyncProfiler initialized successfully. Version: " + version);
}

private boolean init() {
Expand All @@ -105,8 +105,7 @@ private boolean init() {
"Disabling profiling because traces directory is not writable or does not exist: %s (writable=%b, exists=%b)",
profilingTracesDirPath,
profileDir.canWrite(),
profileDir.exists()
);
profileDir.exists());
return false;
}

Expand Down Expand Up @@ -384,7 +383,7 @@ private void safelyRemoveFile(File file) {
file.delete();
}
} catch (Exception e) {
logger.log(SentryLevel.INFO, "Failed to remove jfr file %s.", file.getAbsolutePath() , e);
logger.log(SentryLevel.INFO, "Failed to remove jfr file %s.", file.getAbsolutePath(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public final class AsyncProfilerContinuousProfilerProvider
int profilingTracesHz,
ISentryExecutorService executorService) {
try {
return new JavaContinuousProfiler(
logger, profilingTracesDirPath, profilingTracesHz, executorService);
return new JavaContinuousProfiler(
logger, profilingTracesDirPath, profilingTracesHz, executorService);
} catch (Exception e) {
logger.log(
SentryLevel.WARNING,
Expand Down
Loading