add memoery snapshot path to error message

GitOrigin-RevId: 0887a70854c0dbfd96eb0cd032dcb7590a0dea5a
This commit is contained in:
Max Medvedev
2024-10-04 12:16:50 +02:00
committed by intellij-monorepo-bot
parent 223a302109
commit ef6d786cb7

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.util.ref;
import com.intellij.openapi.util.EmptyRunnable;
@@ -155,6 +155,7 @@ public final class GCWatcher {
Path file = Paths.get(System.getProperty("teamcity.build.tempDir", System.getProperty("java.io.tmpdir")), "GCWatcher.hprof.zip");
MemoryDumpHelper.captureMemoryDumpZipped(file);
message += "\nMemory snapshot is available at " + file + "\n";
//noinspection UseOfSystemOutOrSystemErr
System.out.println("##teamcity[publishArtifacts '" + file + "']");
}