Skip to content

Instantly share code, notes, and snippets.

@mdboom
Created February 2, 2026 16:49
Show Gist options
  • Select an option

  • Save mdboom/78f61edcb7bd33f7b37e97e5df2b8461 to your computer and use it in GitHub Desktop.

Select an option

Save mdboom/78f61edcb7bd33f7b37e97e5df2b8461 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.2//EN" "http://www.w3.org/Graphics/SVG/1.2/DTD/svg12.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="full" xml:space="preserve">
<desc>cuda.bindings.driver.profile</desc>
<defs><style type="text/css">
<![CDATA[
rect { fill:#ffffff; }
g { font-size: 10pt; font-family: Courier New; white-space: pre; }
]]>
</style></defs><g>
<rect x="0" y="0" width="100%" height="100%"/>
<text x="10" y="20"></text>
<text x="10" y="20">Captured&#160;34&#160;samples&#160;in&#160;0.03&#160;seconds
</text>
<text x="10" y="40">Sample&#160;rate:&#160;1,000.00&#160;samples/sec
</text>
<text x="10" y="60">Error&#160;rate:&#160;70.59
</text>
<text x="10" y="80"><tspan style="font-weight:bold;fill:#5c5cff;">Profile&#160;Stats:</tspan>
</text>
<text x="10" y="100"><tspan style="font-weight:bold;fill:#5c5cff;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;nsamples</tspan>&#160;&#160;<tspan style="font-weight:bold;fill:#5c5cff;">&#160;sample%</tspan>&#160;&#160;<tspan style="font-weight:bold;fill:#5c5cff;">tottime&#160;(ms)</tspan>&#160;&#160;<tspan style="font-weight:bold;fill:#5c5cff;">&#160;&#160;cumul%</tspan>&#160;&#160;<tspan style="font-weight:bold;fill:#5c5cff;">cumtime&#160;(ms)</tspan>&#160;&#160;<tspan style="font-weight:bold;fill:#5c5cff;">filename:lineno(function)</tspan>
</text>
<text x="10" y="120">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;5/10&#160;&#160;&#160;&#160;&#160;&#160;50.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;5.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;">491</tspan>(<tspan style="fill:#00cdcd;">_call_with_frames_removed</tspan>)
</text>
<text x="10" y="140">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1/1&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;">615</tspan>(<tspan style="fill:#00cdcd;">EnumType.__new__</tspan>)
</text>
<text x="10" y="160">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1/5&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;&#160;&#160;&#160;&#160;50.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;5.000&#160;&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;">739</tspan>(<tspan style="fill:#00cdcd;">EnumType.__call__</tspan>)
</text>
<text x="10" y="180">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1/1&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">~</tspan>:<tspan style="fill:#cdcd00;">0</tspan>(<tspan style="fill:#00cdcd;">&lt;GC&gt;</tspan>)
</text>
<text x="10" y="200">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1/1&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;">574</tspan>(<tspan style="fill:#00cdcd;">EnumType.__new__</tspan>)
</text>
<text x="10" y="220">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1/1&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;">628</tspan>(<tspan style="fill:#00cdcd;">EnumType.__new__</tspan>)
</text>
<text x="10" y="240">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/1&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap_external&gt;</tspan>:<tspan style="fill:#cdcd00;">1025</tspan>(<tspan style="fill:#00cdcd;">ExtensionFileLoader.create_module</tspan>)
</text>
<text x="10" y="260">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/1&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;">786</tspan>(<tspan style="fill:#00cdcd;">module_from_spec</tspan>)
</text>
<text x="10" y="280">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/1&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;&#160;10.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;1.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;">843</tspan>(<tspan style="fill:#00cdcd;">_load_unlocked</tspan>)
</text>
<text x="10" y="300">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/10&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;">1247</tspan>(<tspan style="fill:#00cdcd;">_find_and_load_unlocked</tspan>)
</text>
<text x="10" y="320">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/10&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;">1276</tspan>(<tspan style="fill:#00cdcd;">_find_and_load</tspan>)
</text>
<text x="10" y="340">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/10&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">script.py</tspan>:<tspan style="fill:#cdcd00;">1</tspan>(<tspan style="fill:#00cdcd;">&lt;module&gt;</tspan>)
</text>
<text x="10" y="360">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/10&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;runpy&gt;</tspan>:<tspan style="fill:#cdcd00;">87</tspan>(<tspan style="fill:#00cdcd;">_run_code</tspan>)
</text>
<text x="10" y="380">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/10&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;100.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;runpy&gt;</tspan>:<tspan style="fill:#cdcd00;">196</tspan>(<tspan style="fill:#00cdcd;">_run_module_as_main</tspan>)
</text>
<text x="10" y="400">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0/9&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;0.000&#160;&#160;&#160;&#160;&#160;&#160;90.0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;9.000&#160;&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap_external&gt;</tspan>:<tspan style="fill:#cdcd00;">1033</tspan>(<tspan style="fill:#00cdcd;">ExtensionFileLoader.exec_module</tspan>)
</text>
<text x="10" y="420">
</text>
<text x="10" y="440"><tspan style="font-weight:bold;fill:#5c5cff;">Legend:</tspan>
</text>
<text x="10" y="460">&#160;&#160;<tspan style="fill:#cdcd00;">nsamples</tspan>:&#160;Direct/Cumulative&#160;samples&#160;(direct&#160;executing&#160;/&#160;on&#160;call&#160;stack)
</text>
<text x="10" y="480">&#160;&#160;<tspan style="fill:#cdcd00;">sample%</tspan>:&#160;Percentage&#160;of&#160;total&#160;samples&#160;this&#160;function&#160;was&#160;directly&#160;executing
</text>
<text x="10" y="500">&#160;&#160;<tspan style="fill:#cdcd00;">tottime</tspan>:&#160;Estimated&#160;total&#160;time&#160;spent&#160;directly&#160;in&#160;this&#160;function
</text>
<text x="10" y="520">&#160;&#160;<tspan style="fill:#cdcd00;">cumul%</tspan>:&#160;Percentage&#160;of&#160;total&#160;samples&#160;when&#160;this&#160;function&#160;was&#160;on&#160;the&#160;call&#160;stack
</text>
<text x="10" y="540">&#160;&#160;<tspan style="fill:#cdcd00;">cumtime</tspan>:&#160;Estimated&#160;cumulative&#160;time&#160;(including&#160;time&#160;in&#160;called&#160;functions)
</text>
<text x="10" y="560">&#160;&#160;<tspan style="fill:#cdcd00;">filename:lineno(function)</tspan>:&#160;Function&#160;location&#160;and&#160;name
</text>
<text x="10" y="580">
</text>
<text x="10" y="600"><tspan style="font-weight:bold;fill:#5c5cff;">Summary&#160;of&#160;Interesting&#160;Functions:</tspan>
</text>
<text x="10" y="620">
</text>
<text x="10" y="640"><tspan style="font-weight:bold;fill:#5c5cff;">Functions&#160;with&#160;Highest&#160;Direct/Cumulative&#160;Ratio&#160;(Hot&#160;Spots):</tspan>
</text>
<text x="10" y="660">&#160;&#160;1.000&#160;direct/cumulative&#160;ratio,&#160;30.0%&#160;direct&#160;samples:&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">EnumType.__new__</tspan>)
</text>
<text x="10" y="680">&#160;&#160;1.000&#160;direct/cumulative&#160;ratio,&#160;10.0%&#160;direct&#160;samples:&#160;<tspan style="fill:#00cd00;">~</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">&lt;GC&gt;</tspan>)
</text>
<text x="10" y="700">&#160;&#160;0.500&#160;direct/cumulative&#160;ratio,&#160;50.0%&#160;direct&#160;samples:&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">_call_with_frames_removed</tspan>)
</text>
<text x="10" y="720">
</text>
<text x="10" y="740"><tspan style="font-weight:bold;fill:#5c5cff;">Functions&#160;with&#160;Highest&#160;Call&#160;Frequency&#160;(Indirect&#160;Calls):</tspan>
</text>
<text x="10" y="760">&#160;&#160;10&#160;indirect&#160;calls,&#160;100.0%&#160;total&#160;stack&#160;presence:&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">_find_and_load_unlocked</tspan>)
</text>
<text x="10" y="780">&#160;&#160;10&#160;indirect&#160;calls,&#160;100.0%&#160;total&#160;stack&#160;presence:&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">_find_and_load</tspan>)
</text>
<text x="10" y="800">&#160;&#160;10&#160;indirect&#160;calls,&#160;100.0%&#160;total&#160;stack&#160;presence:&#160;<tspan style="fill:#00cd00;">script.py</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">&lt;module&gt;</tspan>)
</text>
<text x="10" y="820">
</text>
<text x="10" y="840"><tspan style="font-weight:bold;fill:#5c5cff;">Functions&#160;with&#160;Highest&#160;Call&#160;Magnification&#160;(Cumulative/Direct):</tspan>
</text>
<text x="10" y="860">&#160;&#160;5.0x&#160;call&#160;magnification,&#160;4&#160;indirect&#160;calls&#160;from&#160;1&#160;direct:&#160;<tspan style="fill:#00cd00;">enum.py</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">EnumType.__call__</tspan>)
</text>
<text x="10" y="880">&#160;&#160;2.0x&#160;call&#160;magnification,&#160;5&#160;indirect&#160;calls&#160;from&#160;5&#160;direct:&#160;<tspan style="fill:#00cd00;">&lt;frozen&#160;importlib._bootstrap&gt;</tspan>:<tspan style="fill:#cdcd00;"></tspan>(<tspan style="fill:#00cdcd;">_call_with_frames_removed</tspan>)
</text>
</g>
</svg>
<!-- SVG generated by ansifilter 2.21, http://andre-simon.de/ -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment