Skip to content

Commit b456752

Browse files
committed
v.preludes: cleanup profiled_program.v
1 parent b5167a7 commit b456752

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎vlib/v/preludes/profiled_program.v‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module main
22

3-
import time
4-
import v.profile
5-
6-
const profiled_program_time_used = time.seconds_per_minute
7-
8-
const profiled_program_profile_used = profile.state()
3+
import v.profile as _
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module main
2+
3+
import v.profile as _

‎vlib/v/profile/api.v‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@[has_globals]
22
module profile
33

4+
import time as _
5+
46
__global v__profile_enabled = true
57

68
pub fn state() bool {

0 commit comments

Comments
 (0)