Skip to content
Snippets Groups Projects
Commit 54a51f10 authored by Mick Jordan's avatar Mick Jordan
Browse files

disable memory tracing when profiling ends

parent fe832605
Branches
No related tags found
No related merge requests found
...@@ -199,6 +199,11 @@ public abstract class Rprof extends RExternalBuiltinNode.Arg8 implements RDataFa ...@@ -199,6 +199,11 @@ public abstract class Rprof extends RExternalBuiltinNode.Arg8 implements RDataFa
} }
out.close(); out.close();
profState.setOut(null); profState.setOut(null);
if (profState.memoryProfiling()) {
RDataFactory.setAllocationTracing(false);
MemoryCopyTracer.setTracingState(false);
}
} }
private static String getPath(RSyntaxNode node) { private static String getPath(RSyntaxNode node) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment