v/vlib/v/tests/profile/profile_test_2.v

24 lines
250 B
V

import v.profile
fn abc() {
eprintln(@FN)
}
fn main() {
profile.on(false)
for _ in 0 .. 3 {
abc()
}
println('>>>>>>>>>>')
profile.on(true)
abc()
profile.on(false)
println('>>>>>>>>>>')
for _ in 0 .. 3 {
abc()
}
profile.on(true)
}