diff options
author | 2015-10-09 15:07:02 -0700 | |
---|---|---|
committer | 2015-10-09 15:07:02 -0700 | |
commit | 1f41b6b5eda983052b31f60dcbe24b8021bc2fc2 (patch) | |
tree | d652190ccf684618da09d685da3d1019e196837b /src/core/support/alloc.c | |
parent | 8910ac6a363173b037a209debdc2b4528e9309f6 (diff) |
Simplify adding annotations, annotate more things
Diffstat (limited to 'src/core/support/alloc.c')
-rw-r--r-- | src/core/support/alloc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/support/alloc.c b/src/core/support/alloc.c index 5e17daafe2..beb0e780d0 100644 --- a/src/core/support/alloc.c +++ b/src/core/support/alloc.c @@ -39,28 +39,28 @@ void *gpr_malloc(size_t size) { void *p; - GRPC_TIMER_BEGIN(GRPC_PTAG_MALLOC, 0); + GRPC_TIMER_BEGIN("gpr_malloc", 0); p = malloc(size); if (!p) { abort(); } - GRPC_TIMER_END(GRPC_PTAG_MALLOC, 0); + GRPC_TIMER_END("gpr_malloc", 0); return p; } -void gpr_free(void *p) { - GRPC_TIMER_BEGIN(GRPC_PTAG_FREE, 0); - free(p); - GRPC_TIMER_END(GRPC_PTAG_FREE, 0); +void gpr_free(void *p) { + GRPC_TIMER_BEGIN("gpr_free", 0); + free(p); + GRPC_TIMER_END("gpr_free", 0); } void *gpr_realloc(void *p, size_t size) { - GRPC_TIMER_BEGIN(GRPC_PTAG_REALLOC, 0); + GRPC_TIMER_BEGIN("gpr_realloc", 0); p = realloc(p, size); if (!p) { abort(); } - GRPC_TIMER_END(GRPC_PTAG_REALLOC, 0); + GRPC_TIMER_END("gpr_realloc", 0); return p; } |