|
8 | 8 | #include "xpti_string_table.hpp"
|
9 | 9 |
|
10 | 10 | #include <cassert>
|
| 11 | +#include <cstdio> |
11 | 12 | #include <map>
|
12 | 13 | #include <mutex>
|
13 | 14 | #include <sstream>
|
14 | 15 | #include <string>
|
15 | 16 | #include <unordered_map>
|
16 | 17 | #include <vector>
|
17 | 18 |
|
18 |
| -#ifdef XPTI_STATISTICS |
19 |
| -#include <stdio.h> |
20 |
| -#endif |
21 |
| - |
22 | 19 | #ifdef XPTI_USE_TBB
|
23 | 20 | #include <tbb/concurrent_hash_map.h>
|
24 | 21 | #include <tbb/concurrent_unordered_map.h>
|
@@ -104,7 +101,6 @@ class Subscribers {
|
104 | 101 | #endif
|
105 | 102 | // This plugin has already been loaded, so let's return previously
|
106 | 103 | // recorded handle
|
107 |
| - printf("Plugin (%s) has already been loaded..\n", Path); |
108 | 104 | plugin_data_t &Data = MNameLUT[Path];
|
109 | 105 | assert(Data.valid && "Lookup is invalid!");
|
110 | 106 | if (Data.valid)
|
@@ -384,10 +380,12 @@ class Tracepoints {
|
384 | 380 | // performed.
|
385 | 381 | //
|
386 | 382 | void printStatistics() {
|
| 383 | +#ifdef XPTI_STATISTICS |
387 | 384 | printf("Tracepoint inserts : [%lu] \n", MInsertions.load());
|
388 | 385 | printf("Tracepoint lookups : [%lu]\n", MRetrievals.load());
|
389 | 386 | printf("Tracepoint Hashmap :\n");
|
390 | 387 | MPayloadLUT.printStatistics();
|
| 388 | +#endif |
391 | 389 | }
|
392 | 390 |
|
393 | 391 | private:
|
@@ -646,8 +644,6 @@ class Notifications {
|
646 | 644 | using stream_cb_t = std::unordered_map<uint16_t, cb_t>;
|
647 | 645 | using statistics_t = std::unordered_map<uint16_t, uint64_t>;
|
648 | 646 | #endif
|
649 |
| - Notifications() = default; |
650 |
| - ~Notifications() = default; |
651 | 647 |
|
652 | 648 | xpti::result_t registerCallback(uint8_t StreamID, uint16_t TraceType,
|
653 | 649 | xpti::tracepoint_callback_api_t cbFunc) {
|
@@ -898,7 +894,6 @@ class Framework {
|
898 | 894 | MTraceEnabled =
|
899 | 895 | (g_helper.checkTraceEnv() && MSubscribers.hasValidSubscribers());
|
900 | 896 | }
|
901 |
| - ~Framework() = default; |
902 | 897 |
|
903 | 898 | void clear() {
|
904 | 899 | MUniversalIDs = {1};
|
|
0 commit comments