aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/surface/call.h
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2018-05-17 09:44:07 -0700
committerGravatar Juanli Shen <juanlishen@google.com>2018-05-17 09:44:07 -0700
commit25c57a38bfebed94c5043e2fc39786e7eeb9929d (patch)
tree0929d813dedebb207a5b363da5b17acb9f6d2b0c /src/core/lib/surface/call.h
parent7a94e535f80f6bb250b2c96e2106fae57d4b2d8d (diff)
Include other usage to estimate call size
Diffstat (limited to 'src/core/lib/surface/call.h')
-rw-r--r--src/core/lib/surface/call.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/surface/call.h b/src/core/lib/surface/call.h
index 793cce4efa..e000f13e7d 100644
--- a/src/core/lib/surface/call.h
+++ b/src/core/lib/surface/call.h
@@ -98,6 +98,11 @@ void* grpc_call_context_get(grpc_call* call, grpc_context_index elem);
uint8_t grpc_call_is_client(grpc_call* call);
+/* Get the estimated memory size for a call BESIDES the call stack. Combined
+ * with the size of the call stack, it helps estimate the arena size for the
+ * initial call. */
+size_t grpc_call_get_initial_size_estimate();
+
/* Return an appropriate compression algorithm for the requested compression \a
* level in the context of \a call. */
grpc_compression_algorithm grpc_call_compression_for_level(