1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/profile/api.v

14 lines
185 B
V

[has_globals]
module profile
__global v__profile_enabled = true
pub fn state() bool {
return v__profile_enabled
}
[if profile]
pub fn on(state bool) {
v__profile_enabled = state
}