You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Cheng Yi <ph...@gmail.com> on 2015/02/18 02:39:44 UTC
about the stats on 5.2.0
Hi:
I have trouble using the stats API on 5.2.0
first of all the API sample provided not working. These API are not found in the 5.2.0 ts/ts.h file
Then I tried to guess by reading the ts.h file and write following:
int user_session_count_stat = TSStatCreate(user_session_count_name, TS_RECORDDATATYPE_INT, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_COUNT);
TSStatIntIncrement(user_session_count_stat, 1l);
but when I run I got
0 traffic_server 0x0000000105af6841 _Z19crash_logger_invokeiP9__siginfoPv + 145
1 libsystem_platform.dylib 0x00007fff8f0f8f1a _sigtramp + 26
2 ??? 0x00007f960acdc180 0x0 + 140282403078528
3 traffic_server 0x0000000105b3305f TSStatIntIncrement + 47
Please help.
Thanks.
Cheng Yi