Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
0fb96e8b
Commit
0fb96e8b
authored
10 years ago
by
Vijay Pai
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/profiling/timers.c
+4
-4
4 additions, 4 deletions
src/core/profiling/timers.c
src/core/profiling/timers.h
+1
-1
1 addition, 1 deletion
src/core/profiling/timers.h
with
5 additions
and
5 deletions
src/core/profiling/timers.c
+
4
−
4
View file @
0fb96e8b
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/core/profiling/timers.h
+
1
−
1
View file @
0fb96e8b
...
@@ -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
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment