spall instrumentation
This commit is contained in:
1 parent
1ebb7f8e9d
commit
ca6300c860
8 files changed
+187
-11
No files matched your search
@@ -22,5 +22,18 @@ main :: proc() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
// Automatic profiling of every procedure:
|
||||
|
||||
@(instrumentation_enter)
|
||||
spall_enter :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
|
||||
spall._buffer_begin(&spall_ctx, &spall_buffer, "", "", loc)
|
||||
}
|
||||
|
||||
@(instrumentation_exit)
|
||||
spall_exit :: proc "contextless" (proc_address, call_site_return_address: rawptr, loc: runtime.Source_Code_Location) {
|
||||
spall._buffer_end(&spall_ctx, &spall_buffer)
|
||||
}
|
||||
|
||||
*/
|
||||
package spall
|
||||
Reference in new issue
Block a user