Skip to content
Snippets Groups Projects
Commit 0fb96e8b authored by Vijay Pai's avatar Vijay Pai
Browse files

Rename seq to id so that it's clear it can be any generic ID

parent 74c0224e
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
typedef struct grpc_timer_entry { typedef struct grpc_timer_entry {
grpc_precise_clock tm; grpc_precise_clock tm;
const char* tag; const char* tag;
void* seq; void* id;
const char* file; const char* file;
int line; int line;
} grpc_timer_entry; } grpc_timer_entry;
...@@ -85,7 +85,7 @@ static void log_report_locked(grpc_timers_log* log) { ...@@ -85,7 +85,7 @@ static void log_report_locked(grpc_timers_log* log) {
grpc_timer_entry* entry = &(log->log[i]); grpc_timer_entry* entry = &(log->log[i]);
fprintf(fp, "GRPC_LAT_PROF "); fprintf(fp, "GRPC_LAT_PROF ");
grpc_precise_clock_print(&entry->tm, fp); grpc_precise_clock_print(&entry->tm, fp);
fprintf(fp, " %s %p %s %d\n", entry->tag, entry->seq, entry->file, fprintf(fp, " %s %p %s %d\n", entry->tag, entry->id, entry->file,
entry->line); entry->line);
} }
...@@ -104,7 +104,7 @@ void grpc_timers_log_destroy(grpc_timers_log* log) { ...@@ -104,7 +104,7 @@ void grpc_timers_log_destroy(grpc_timers_log* log) {
gpr_free(log); gpr_free(log);
} }
void grpc_timers_log_add(grpc_timers_log* log, const char* tag, void* seq, void grpc_timers_log_add(grpc_timers_log* log, const char* tag, void* id,
const char* file, int line) { const char* file, int line) {
grpc_timer_entry* entry; grpc_timer_entry* entry;
...@@ -118,7 +118,7 @@ void grpc_timers_log_add(grpc_timers_log* log, const char* tag, void* seq, ...@@ -118,7 +118,7 @@ void grpc_timers_log_add(grpc_timers_log* log, const char* tag, void* seq,
grpc_precise_clock_now(&entry->tm); grpc_precise_clock_now(&entry->tm);
entry->tag = tag; entry->tag = tag;
entry->seq = seq; entry->id = id;
entry->file = file; entry->file = file;
entry->line = line; entry->line = line;
......
...@@ -45,7 +45,7 @@ extern "C" { ...@@ -45,7 +45,7 @@ extern "C" {
typedef struct grpc_timers_log grpc_timers_log; typedef struct grpc_timers_log grpc_timers_log;
grpc_timers_log* grpc_timers_log_create(int capacity_limit, FILE* dump); grpc_timers_log* grpc_timers_log_create(int capacity_limit, FILE* dump);
void grpc_timers_log_add(grpc_timers_log*, const char* tag, void* seq, void grpc_timers_log_add(grpc_timers_log*, const char* tag, void* id,
const char* file, int line); const char* file, int line);
void grpc_timers_log_destroy(grpc_timers_log *); void grpc_timers_log_destroy(grpc_timers_log *);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment