From 0fb96e8b5e32a8f8c7bc364ff8bc37df61a6e315 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Wed, 15 Apr 2015 00:47:05 -0700 Subject: Rename seq to id so that it's clear it can be any generic ID --- src/core/profiling/timers.c | 8 ++++---- src/core/profiling/timers.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/profiling') diff --git a/src/core/profiling/timers.c b/src/core/profiling/timers.c index e8743aa990..7cc79bd22b 100644 --- a/src/core/profiling/timers.c +++ b/src/core/profiling/timers.c @@ -45,7 +45,7 @@ typedef struct grpc_timer_entry { grpc_precise_clock tm; const char* tag; - void* seq; + void* id; const char* file; int line; } grpc_timer_entry; @@ -85,7 +85,7 @@ static void log_report_locked(grpc_timers_log* log) { grpc_timer_entry* entry = &(log->log[i]); fprintf(fp, "GRPC_LAT_PROF "); 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); } @@ -104,7 +104,7 @@ void grpc_timers_log_destroy(grpc_timers_log* 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) { grpc_timer_entry* entry; @@ -118,7 +118,7 @@ void grpc_timers_log_add(grpc_timers_log* log, const char* tag, void* seq, grpc_precise_clock_now(&entry->tm); entry->tag = tag; - entry->seq = seq; + entry->id = id; entry->file = file; entry->line = line; diff --git a/src/core/profiling/timers.h b/src/core/profiling/timers.h index 3cb6feaa85..1a6b9ffac9 100644 --- a/src/core/profiling/timers.h +++ b/src/core/profiling/timers.h @@ -45,7 +45,7 @@ extern "C" { typedef struct grpc_timers_log grpc_timers_log; 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); void grpc_timers_log_destroy(grpc_timers_log *); -- cgit v1.2.3