diff options
author | 2015-09-22 12:33:20 -0700 | |
---|---|---|
committer | 2015-09-22 12:33:20 -0700 | |
commit | a82950e68318a6aab6fe894fa39f7fa616c4647b (patch) | |
tree | 7d02bd1e9e1cbae1f14ad4ad1e06d3ae81a96dfe /src/core/statistics/census_interface.h | |
parent | 8af4c337181322cc4fb396199c90f574cfb4163f (diff) |
clang-format all core files
Diffstat (limited to 'src/core/statistics/census_interface.h')
-rw-r--r-- | src/core/statistics/census_interface.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/statistics/census_interface.h b/src/core/statistics/census_interface.h index 22b3cc8c88..e870357276 100644 --- a/src/core/statistics/census_interface.h +++ b/src/core/statistics/census_interface.h @@ -41,8 +41,7 @@ /* Structure of a census op id. Define as structure because 64bit integer is not available on every platform for C89. */ -typedef struct census_op_id -{ +typedef struct census_op_id { gpr_uint32 upper; gpr_uint32 lower; } census_op_id; @@ -50,10 +49,10 @@ typedef struct census_op_id typedef struct census_rpc_stats census_rpc_stats; /* Initializes Census library. No-op if Census is already initialized. */ -void census_init (void); +void census_init(void); /* Shutdown Census Library. */ -void census_shutdown (void); +void census_shutdown(void); /* Annotates grpc method name on a census_op_id. The method name has the format of <full quantified rpc service name>/<rpc function name>. Returns 0 iff @@ -62,16 +61,16 @@ void census_shutdown (void); TODO(hongyu): Figure out valid characters set for service name and command name and document requirements here.*/ -int census_add_method_tag (census_op_id op_id, const char *method_name); +int census_add_method_tag(census_op_id op_id, const char *method_name); /* Annotates tracing information to a specific op_id. Up to CENSUS_MAX_ANNOTATION_LENGTH bytes are recorded. */ -void census_tracing_print (census_op_id op_id, const char *annotation); +void census_tracing_print(census_op_id op_id, const char *annotation); /* Starts tracing for an RPC. Returns a locally unique census_op_id */ -census_op_id census_tracing_start_op (void); +census_op_id census_tracing_start_op(void); /* Ends tracing. Calling this function will invalidate the input op_id. */ -void census_tracing_end_op (census_op_id op_id); +void census_tracing_end_op(census_op_id op_id); #endif /* GRPC_INTERNAL_CORE_STATISTICS_CENSUS_INTERFACE_H */ |