File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -115,4 +115,6 @@ namespace ircd
115
115
116
116
using ctx::critical_assertion;
117
117
using ctx::critical_indicator;
118
+
119
+ using ctx::prof::rdtsc;
118
120
}
Original file line number Diff line number Diff line change @@ -32,10 +32,15 @@ namespace ircd::ctx::prof
32
32
enum class event ;
33
33
struct settings extern settings;
34
34
35
+ // lowlevel
36
+ ulong rdtsc ();
37
+
38
+ // state accessors
35
39
const ulong &total_slice_cycles ();
36
40
const ulong &cur_slice_start ();
37
41
ulong cur_slice_cycles ();
38
42
43
+ // called at the appropriate point to mark the event (internal use).
39
44
void mark (const event &);
40
45
}
41
46
Original file line number Diff line number Diff line change @@ -1231,7 +1231,7 @@ ircd::ctx::prof::mark(const event &e)
1231
1231
ulong
1232
1232
ircd::ctx::prof::cur_slice_cycles ()
1233
1233
{
1234
- return __rdtsc () - cur_slice_start ();
1234
+ return rdtsc () - cur_slice_start ();
1235
1235
}
1236
1236
1237
1237
const ulong &
@@ -1274,7 +1274,7 @@ ircd::ctx::prof::handle_cur_continue()
1274
1274
void
1275
1275
ircd::ctx::prof::slice_start ()
1276
1276
{
1277
- _slice_start = __rdtsc ();
1277
+ _slice_start = rdtsc ();
1278
1278
}
1279
1279
1280
1280
void
@@ -1335,6 +1335,12 @@ ircd::ctx::prof::check_stack()
1335
1335
}
1336
1336
}
1337
1337
1338
+ ulong
1339
+ ircd::ctx::prof::rdtsc ()
1340
+ {
1341
+ return __rdtsc ();
1342
+ }
1343
+
1338
1344
// /////////////////////////////////////////////////////////////////////////////
1339
1345
//
1340
1346
// ctx_ole.h
You can’t perform that action at this time.
0 commit comments