| 794 | } |
| 795 | |
| 796 | static void |
| 797 | GeneratorInitialize() |
| 798 | { |
| 799 | TxnHook = TSContCreate(GeneratorTxnHook, nullptr); |
| 800 | memset(GeneratorData, 'x', sizeof(GeneratorData)); |
| 801 | |
| 802 | if (TSStatFindName("generator.response_bytes", &StatCountBytes) == TS_ERROR) { |
| 803 | StatCountBytes = TSStatCreate("generator.response_bytes", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM); |
| 804 | } |
| 805 | |
| 806 | if (TSStatFindName("generator.response_count", &StatCountResponses) == TS_ERROR) { |
| 807 | StatCountResponses = |
| 808 | TSStatCreate("generator.response_count", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_COUNT); |
| 809 | } |
| 810 | } |
| 811 | |
| 812 | void |
| 813 | TSPluginInit(int /* argc */, const char * /* argv */[]) |
no test coverage detected