Put the project name inside the profile file.

[GB.DEBUG]
* NEW: Put the project name inside the profile file.
This commit is contained in:
Benoît Minisini 2023-11-09 23:35:13 +01:00
parent dbd5395941
commit 637879db26
3 changed files with 4 additions and 4 deletions

View file

@ -177,7 +177,7 @@ void DEBUG_init(void)
if (EXEC_profile)
{
EXEC_profile_instr = TRUE;
DEBUG.Profile.Init(EXEC_profile_path);
DEBUG.Profile.Init(EXEC_profile_path, PROJECT_name);
}
}

View file

@ -106,7 +106,7 @@ typedef
void (*InitBreakpoints)(void *klass);
bool (*CheckWatches)(void);
struct {
void (*Init)(const char *path);
void (*Init)(const char *path, const char *project_name);
void (*Add)(void *cp, void *fp, void *pc);
void (*Exit)(void);
void (*Begin)(void *cp, void *fp);

View file

@ -61,7 +61,7 @@ static uint64_t get_time(void)
return t;
}
void PROFILE_init(const char *path)
void PROFILE_init(const char *path, const char *project_name)
{
char *env;
size_t max;
@ -85,7 +85,7 @@ void PROFILE_init(const char *path)
abort();
}
fprintf(_file, "[1]\n");
fprintf(_file, "[1] %s\n", project_name);
//_ticks_per_sec = sysconf(_SC_CLK_TCK);
//fprintf(stderr, "_ticks_per_sec = %ld\n", _ticks_per_sec);