From b9089e505117e52ec93708235c8f9db2e47e9bb2 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Wed, 13 May 2015 23:34:41 +0200 Subject: [PATCH] Colors don't belong here, let the visualization handle that --- profiler/profiler.cpp | 8 -------- profiler/profiler.h | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/profiler/profiler.cpp b/profiler/profiler.cpp index 4bb6ab3f8a..671a0fa48f 100644 --- a/profiler/profiler.cpp +++ b/profiler/profiler.cpp @@ -21,7 +21,6 @@ struct Category { const char *name; - uint32_t color; }; struct CategoryFrame { @@ -45,9 +44,6 @@ static CategoryFrame *history; void internal_profiler_init() { memset(&profiler, 0, sizeof(profiler)); history = new CategoryFrame[HISTORY_SIZE]; - for (int i = 0; i < MAX_CATEGORIES; i++) { - categories[i].color = 0xFF000000 | (0x358236 * (i+4)); - } } int internal_profiler_enter(const char *category_name) { @@ -98,10 +94,6 @@ const char *Profiler_GetCategoryName(int i) { return i >= 0 ? categories[i].name : "N/A"; } -uint32_t Profiler_GetCategoryColor(int i) { - return i >= 0 ? categories[i].color : 0xFFFF00FF; -} - int Profiler_GetHistoryLength() { return HISTORY_SIZE; } diff --git a/profiler/profiler.h b/profiler/profiler.h index 86baf7956e..9275cb697d 100644 --- a/profiler/profiler.h +++ b/profiler/profiler.h @@ -2,7 +2,7 @@ #include -// #define USE_PROFILER +#define USE_PROFILER #ifdef USE_PROFILER @@ -16,7 +16,6 @@ void internal_profiler_leave(int category); const char *Profiler_GetCategoryName(int i); -uint32_t Profiler_GetCategoryColor(int i); int Profiler_GetNumCategories(); int Profiler_GetHistoryLength(); void Profiler_GetHistory(int i, float *data, int count);