14 class StatPhaseDummy {
16 inline StatPhaseDummy() {
20 inline static auto wrap(
const char* title, F func) ->
21 typename std::result_of<F(StatPhaseDummy&)>::type {
28 inline static auto wrap(
const char* title, F func) ->
29 typename std::result_of<F()>::type {
34 inline static void track_alloc(
size_t bytes) {
37 inline static void track_free(
size_t bytes) {
40 inline static void pause_tracking() {
43 inline static void resume_tracking() {
47 inline static void log(
const char* key,
const T& value) {
50 inline StatPhaseDummy(
const char* title) {
53 inline StatPhaseDummy(
const std::string& title) {
56 inline ~StatPhaseDummy() {
59 inline void split(
const char* new_title) {
62 inline void split(
const std::string& new_title) {
66 inline void log_stat(
const char* key,
const T& value) {
69 inline json::Object to_json() {
70 return json::Object();
Contains the text compression and encoding framework.