int main( int argc, char const * argv[] ) { StatisticsProviderPlugin * plugin = module_create_instance<StatisticsProviderPlugin>( "", "siox-monitoring-statisticsPlugin-likwid" , MONITORING_STATISTICS_PLUGIN_INTERFACE ); ProviderLikwidOptions options; options.groups = "MEM"; plugin->init(& options); auto list = plugin->availableMetrics(); cout << "Likwid plugin" << endl; for(int i=0; i < 3 ; i++){ cout << endl; cout << "next timestep" << endl; plugin->nextTimestep(); for( auto it = list.begin() ; it != list.end(); it ++ ) { StatisticsProviderDatatypes & stat = *it; cout << stat.topologyPath << " " << stat.metrics << ": " << stat.value << " " << stat.si_unit << endl; } } delete( plugin ); cout << "OK" << endl; return 0; }
int main( int argc, char const * argv[] ) { StatisticsProviderPlugin * plugin = module_create_instance<StatisticsProviderPlugin>( "", "siox-monitoring-statisticsPlugin-testGenerator" , MONITORING_STATISTICS_PLUGIN_INTERFACE ); TestGeneratorOptions options; plugin->init(& options); auto list = plugin->availableMetrics(); cout << "testGenerator plugin" << endl; for (int c = 0; c < 4; c++ ){ plugin->nextTimestep(); for( auto it = list.begin() ; it != list.end(); it ++ ) { StatisticsProviderDatatypes & stat = *it; cout << stat.topologyPath << " "; cout << stat.metrics << ": " << stat.value << " " << stat.si_unit << endl; } cout << endl; } delete( plugin ); cout << "OK" << endl; return 0; }
int main( int argc, char const * argv[] ) { StatisticsProviderPlugin * ps = module_create_instance<StatisticsProviderPlugin>( "", "siox-monitoring-statisticsPlugin-providerskel" , MONITORING_STATISTICS_PLUGIN_INTERFACE ); ps->getOptions<ProviderSkeletonOptions>().statisticsCollector.componentPointer = new StatisticsCollectorTester(); StatisticsProviderPluginOptions options; ps->init(& options); delete( ps ); cout << "OK" << endl; return 0; }