Commit 459bb2bf authored by Brice Videau's avatar Brice Videau
Browse files

Tracing all functions.

parent 736c4b29
......@@ -669,6 +669,23 @@ profiling_epilogue = lambda { |event_name|
EOF
}
register_prologue "zeCommandListAppendLaunchKernel", profiling_prologue.call("hSignalEvent")
[ "zeCommandListAppendLaunchKernel",
"zeCommandListAppendBarrier",
"zeCommandListAppendLaunchCooperativeKernel",
"zeCommandListAppendLaunchKernelIndirect",
"zeCommandListAppendLaunchMultipleKernelsIndirect",
"zeCommandListAppendMemoryRangesBarrier" ].each { |c|
register_prologue c, profiling_prologue.call("hSignalEvent")
register_epilogue c, profiling_epilogue.call("hSignalEvent")
}
register_epilogue "zeCommandListAppendLaunchKernel", profiling_epilogue.call("hSignalEvent")
[ "zeCommandListAppendMemoryCopy",
"zeCommandListAppendMemoryFill",
"zeCommandListAppendMemoryCopyRegion",
"zeCommandListAppendImageCopy",
"zeCommandListAppendImageCopyRegion",
"zeCommandListAppendImageCopyToMemory",
"zeCommandListAppendImageCopyFromMemory" ].each { |c|
register_prologue c, profiling_prologue.call("hEvent")
register_epilogue c, profiling_epilogue.call("hEvent")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment