Thanks for confirming my guess. It is completely justified but if I use those 
classes in non-gRPC code the metrics will be wrong.
 
The code is really nice and hence I was exploring the possibility of using them 
outside.
 

 
 

 
 
>  
> On Nov 12, 2019 at 5:18 PM,  <'Vijay Pai' via grpc.io 
> (mailto:[email protected])>  wrote:
>  
>  
>  
> Those macros are performance-tracking counters used in microbenchmarks. We 
> count our use of atomic operations, locks, and mallocs since these are all 
> (relatively) expensive operations and often foreshadow performance 
> regressions (or improvements). The results of these can be seen on the Checks 
> section of any PR on our Github repo (though they are only shown if there's a 
> significant change).
>  
>  On Tuesday, October 29, 2019 at 10:07:42 AM UTC-7, Saroj Mahapatra wrote: 
> >  Hi, 
> >
> > Why does comoare_exchange_week call gpr_atm_inc_cas_then before calling the 
> > std function?
> >
> >  
> >
> > Thank you.
> >
> >  
> >
> >
> >
> >  
>  
>  
>
>
>
>  --
>  You received this message because you are subscribed to the Google Groups 
> "grpc.io" group.
>  To unsubscribe from this group and stop receiving emails from it, send an 
> email to  [email protected] 
> (mailto:[email protected]).
>  To view this discussion on the web visit   
> https://groups.google.com/d/msgid/grpc-io/f73544d2-0c5b-45be-914b-0945f8ba1a98%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/grpc-io/f73544d2-0c5b-45be-914b-0945f8ba1a98%40googlegroups.com?utm_medium=email&utm_source=footer).
>              

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/21487f39-45b8-417e-bd3a-63f53b61d08b%40iPhone.

Reply via email to