trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 毅程 <phillipchen...@gmail.com>
Subject about the stats API on 5.2.0
Date Wed, 25 Feb 2015 14:45:53 GMT
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.

Mime
View raw message