Skip to content
Snippets Groups Projects
Commit 3bef00b2 authored by Hongyu Chen's avatar Hongyu Chen
Browse files

Merge branch 'census_active_ops' of https://github.com/maxwell-demon/grpc into census_active_ops

parents b5674540 c0ef1ded
No related branches found
No related tags found
No related merge requests found
...@@ -80,11 +80,11 @@ trace_obj* census_get_trace_obj_locked(census_op_id op_id); ...@@ -80,11 +80,11 @@ trace_obj* census_get_trace_obj_locked(census_op_id op_id);
void census_internal_lock_trace_store(void); void census_internal_lock_trace_store(void);
void census_internal_unlock_trace_store(void); void census_internal_unlock_trace_store(void);
/* Gets method tag name associated with the input trace object. */ /* Gets method name associated with the input trace object. */
const char* census_get_trace_method_name(const trace_obj* trace); const char* census_get_trace_method_name(const trace_obj* trace);
/* Returns an array of pointers to trace objects of currently active operations /* Returns an array of pointers to trace objects of currently active operations
and fills in number of active operations. Returns NULL if there's no active and fills in number of active operations. Returns NULL if there are no active
operations. operations.
Caller owns the returned objects. */ Caller owns the returned objects. */
trace_obj** census_get_active_ops(int* num_active_ops); trace_obj** census_get_active_ops(int* num_active_ops);
......
...@@ -204,7 +204,7 @@ static void test_get_active_ops(void) { ...@@ -204,7 +204,7 @@ static void test_get_active_ops(void) {
gpr_free(active_ops); gpr_free(active_ops);
active_ops = NULL; active_ops = NULL;
/* Start the second and the third ops */ /* Start the second and third ops */
id_2 = census_tracing_start_op(); id_2 = census_tracing_start_op();
census_add_method_tag(id_2, "foo_2"); census_add_method_tag(id_2, "foo_2");
id_3 = census_tracing_start_op(); id_3 = census_tracing_start_op();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment