Planning to try out a flavor of Ryan's multi-threaded laned procs with the some extra threads hooked up separately to a job system. Will most likely do 2 threads main/helper on live lanes, then 2 others on job queue loops
21 lines
531 B
Odin
21 lines
531 B
Odin
package vefontcache
|
|
|
|
// Add profiling hookup here
|
|
|
|
import "codebase:grime"
|
|
|
|
@(deferred_none = profile_end, disabled = DISABLE_PROFILING)
|
|
profile :: #force_inline proc "contextless" ( name : string, loc := #caller_location ) {
|
|
grime.profile_begin(name, loc)
|
|
}
|
|
|
|
@(disabled = DISABLE_PROFILING)
|
|
profile_begin :: #force_inline proc "contextless" ( name : string, loc := #caller_location ) {
|
|
grime.profile_begin(name, loc)
|
|
}
|
|
|
|
@(disabled = DISABLE_PROFILING)
|
|
profile_end :: #force_inline proc "contextless" () {
|
|
grime.profile_end()
|
|
}
|