equal
deleted
inserted
replaced
34 static uint64_t _rnd; |
34 static uint64_t _rnd; |
35 |
35 |
36 void pick_next_geometric_sample(); |
36 void pick_next_geometric_sample(); |
37 void pick_next_sample(size_t overflowed_bytes = 0); |
37 void pick_next_sample(size_t overflowed_bytes = 0); |
38 static int _enabled; |
38 static int _enabled; |
39 static int _sampling_rate; |
39 static int _sampling_interval; |
40 |
40 |
41 // Used for assertion mode to determine if there is a path to a TLAB slow path |
41 // Used for assertion mode to determine if there is a path to a TLAB slow path |
42 // without a collector present. |
42 // without a collector present. |
43 size_t _collectors_present; |
43 size_t _collectors_present; |
44 |
44 |
61 |
61 |
62 static int enabled(); |
62 static int enabled(); |
63 static void enable(); |
63 static void enable(); |
64 static void disable(); |
64 static void disable(); |
65 |
65 |
66 static void set_sampling_rate(int sampling_rate); |
66 static void set_sampling_interval(int sampling_interval); |
67 static int get_sampling_rate(); |
67 static int get_sampling_interval(); |
68 |
68 |
69 bool sampling_collector_present() const; |
69 bool sampling_collector_present() const; |
70 bool remove_sampling_collector(); |
70 bool remove_sampling_collector(); |
71 bool add_sampling_collector(); |
71 bool add_sampling_collector(); |
72 }; |
72 }; |