Use numerical IDs for the profiler

This commit is contained in:
abdelrahman committed 2023-07-09 22:15:53 +01:00
1 parent e17ca4d3d2
commit 43ec97378c
2 files changed
+40 -15

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#ifndef PROFILER_IDS_H
#define PROFILER_IDS_H
enum profiler_ids {
PROFILER_ID_CLI_PARSE,
PROFILER_ID_JSON_PARSE,
PROFILER_ID_READ_JSON_FILE,
PROFILER_ID_PARSER_SETUP,
PROFILER_ID_LEX_GET_TOKEN,
PROFILER_ID_PARSE_TOKEN,
PROFILER_ID_PARSER_TEAR_DOWN,
PROFILER_ID_LOAD_JSON_PAIRS,
PROFILER_ID_READ_BINARY,
PROFILER_ID_HAVERSINE_SUM,
PROFILER_ID_HAVERSINE_DISTANCE,
PROFILER_ID_HAVERSINE_AVG,
PROFILER_ID_TEAR_DOWN,
COUNT_PROFILER_IDS,
};
#endif // !PROFILER_IDS_H