Put the project name inside the profile file.
[GB.DEBUG] * NEW: Put the project name inside the profile file.
This commit is contained in:
parent
dbd5395941
commit
637879db26
3 changed files with 4 additions and 4 deletions
|
@ -177,7 +177,7 @@ void DEBUG_init(void)
|
||||||
if (EXEC_profile)
|
if (EXEC_profile)
|
||||||
{
|
{
|
||||||
EXEC_profile_instr = TRUE;
|
EXEC_profile_instr = TRUE;
|
||||||
DEBUG.Profile.Init(EXEC_profile_path);
|
DEBUG.Profile.Init(EXEC_profile_path, PROJECT_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ typedef
|
||||||
void (*InitBreakpoints)(void *klass);
|
void (*InitBreakpoints)(void *klass);
|
||||||
bool (*CheckWatches)(void);
|
bool (*CheckWatches)(void);
|
||||||
struct {
|
struct {
|
||||||
void (*Init)(const char *path);
|
void (*Init)(const char *path, const char *project_name);
|
||||||
void (*Add)(void *cp, void *fp, void *pc);
|
void (*Add)(void *cp, void *fp, void *pc);
|
||||||
void (*Exit)(void);
|
void (*Exit)(void);
|
||||||
void (*Begin)(void *cp, void *fp);
|
void (*Begin)(void *cp, void *fp);
|
||||||
|
|
|
@ -61,7 +61,7 @@ static uint64_t get_time(void)
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PROFILE_init(const char *path)
|
void PROFILE_init(const char *path, const char *project_name)
|
||||||
{
|
{
|
||||||
char *env;
|
char *env;
|
||||||
size_t max;
|
size_t max;
|
||||||
|
@ -85,7 +85,7 @@ void PROFILE_init(const char *path)
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(_file, "[1]\n");
|
fprintf(_file, "[1] %s\n", project_name);
|
||||||
|
|
||||||
//_ticks_per_sec = sysconf(_SC_CLK_TCK);
|
//_ticks_per_sec = sysconf(_SC_CLK_TCK);
|
||||||
//fprintf(stderr, "_ticks_per_sec = %ld\n", _ticks_per_sec);
|
//fprintf(stderr, "_ticks_per_sec = %ld\n", _ticks_per_sec);
|
||||||
|
|
Loading…
Reference in a new issue