Skip to content

Commit 0215104

Browse files
committed
convert RootName to TruffleString in ProfilerBuiltins.GetStats
1 parent f85e33b commit 0215104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/LsprofModuleBuiltins.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
package com.oracle.graal.python.builtins.modules;
4242

4343
import static com.oracle.graal.python.nodes.SpecialMethodNames.J___INIT__;
44+
import static com.oracle.graal.python.util.PythonUtils.toTruffleStringUncached;
4445

4546
import java.util.ArrayList;
4647
import java.util.Arrays;
@@ -320,7 +321,7 @@ private static Object[] getProfilerEntry(ProfilerNode<Payload> node, double avgS
320321
int selfHitCount = node.getPayload().getSelfHitCount();
321322
long hitCount = (long) otherHitCount + selfHitCount;
322323
Object[] profilerEntry = new Object[]{
323-
rootName,
324+
toTruffleStringUncached(rootName),
324325
hitCount,
325326
0,
326327
otherHitCount * avgSampleTime,

0 commit comments

Comments
 (0)