debugger.getcyclescount()
| 5005 | |
| 5006 | // debugger.getcyclescount() |
| 5007 | static int debugger_getcyclescount(lua_State *L) |
| 5008 | { |
| 5009 | int64 counter_value = timestampbase + (uint64)timestamp - total_cycles_base; |
| 5010 | if (counter_value < 0) // sanity check |
| 5011 | { |
| 5012 | ResetDebugStatisticsCounters(); |
| 5013 | counter_value = 0; |
| 5014 | } |
| 5015 | lua_pushinteger(L, counter_value); |
| 5016 | return 1; |
| 5017 | } |
| 5018 | |
| 5019 | // debugger.getinstructionscount() |
| 5020 | static int debugger_getinstructionscount(lua_State *L) |
nothing calls this directly
no test coverage detected