mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-19 20:34:26 +01:00
Colors don't belong here, let the visualization handle that
This commit is contained in:
1 parent
fa1930773f
commit
b9089e5051
2 files changed
+1
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
+1
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
// #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);
|
||||
|
||||
Reference in new issue
Block a user