![]() |
|
PhoenixMicroBenchmark
1.0.1
Toolset for function micro-benchmarking
|
Include dependency graph for micro_benchmark_common.cpp:Go to the source code of this file.
Functions | |
| std::vector< std::string > | cutStringOnChars (const std::string &strIn, const std::string &setChars) |
| Cut a string on determined chars. | |
| bool | findCharInString (const std::string &str, char ch) |
| Tells if a chararacter is in a string. | |
| void | micro_benchmarkComputeTime (double &ellapsedTimeNs, double &ellapsedTimeErrorNs, const MapOrderedTime &mapOrderTime, size_t nbValueToBeUsed) |
| Compute the total computing time and associated error with the given data. | |
| void | micro_benchmarkHelpFunction () |
| Help function of the micro benchmarking program argument parse. | |
| void | micro_benchmarkHelpFunction2d () |
| Help function of the micro benchmarking program argument parse. | |
| int | micro_benchmarkParseArg (int argc, char **argv, EvaluateTimeFct evalFunc) |
| Call the evalFunc by respect to the arguments given to the program. | |
| int | micro_benchmarkParseArg2d (int argc, char **argv, EvaluateTimeFct2d evalFunc) |
| Call the evalFunc by respect to the arguments given to the program. | |
| void | micro_benchmarkVecToMap (MapOrderedTime &mapOrderTime, const VecEllapsedTime &vecTime) |
| Fill the map of ordered time with the vector. | |
| std::vector< std::string > cutStringOnChars | ( | const std::string & | strIn, |
| const std::string & | setChars ) |
Cut a string on determined chars.
| strIn | : input string |
| setChars | : set of characters on which to cut |
Definition at line 71 of file micro_benchmark_common.cpp.
References findCharInString().
Referenced by micro_benchmarkParseArg(), and micro_benchmarkParseArg2d().
Here is the call graph for this function:
Here is the caller graph for this function:| bool findCharInString | ( | const std::string & | str, |
| char | ch ) |
Tells if a chararacter is in a string.
| str | : string to be analysed |
| ch | : char to be searched in str |
Definition at line 57 of file micro_benchmark_common.cpp.
Referenced by cutStringOnChars().
Here is the caller graph for this function:| void micro_benchmarkComputeTime | ( | double & | ellapsedTimeNs, |
| double & | ellapsedTimeErrorNs, | ||
| const MapOrderedTime & | mapOrderTime, | ||
| size_t | nbValueToBeUsed ) |
Compute the total computing time and associated error with the given data.
| [out] | ellapsedTimeNs | : ellapsed time in ns |
| [out] | ellapsedTimeErrorNs | : error on the ellapsed time in ns |
| mapOrderTime | : map of the ordered ellapsed times | |
| nbValueToBeUsed | : number of values to be used in the map to compute the performance of the function |
Definition at line 32 of file micro_benchmark_common.cpp.
Referenced by micro_benchmarkNs(), and micro_benchmarkRdtsc().
Here is the caller graph for this function:| void micro_benchmarkHelpFunction | ( | ) |
Help function of the micro benchmarking program argument parse.
Definition at line 48 of file micro_benchmark_common.cpp.
Referenced by micro_benchmarkParseArg().
Here is the caller graph for this function:| void micro_benchmarkHelpFunction2d | ( | ) |
Help function of the micro benchmarking program argument parse.
Definition at line 114 of file micro_benchmark_common.cpp.
Referenced by micro_benchmarkParseArg2d().
Here is the caller graph for this function:| int micro_benchmarkParseArg | ( | int | argc, |
| char ** | argv, | ||
| EvaluateTimeFct | evalFunc ) |
Call the evalFunc by respect to the arguments given to the program.
| argc | : number of arguments passed to the program |
| argv | : table of arguments passed to the program |
| evalFunc | : function which evaluates the performance of an other function |
Definition at line 92 of file micro_benchmark_common.cpp.
References cutStringOnChars(), micro_benchmarkHelpFunction(), and PIN_THREAD_TO_CORE.
Here is the call graph for this function:| int micro_benchmarkParseArg2d | ( | int | argc, |
| char ** | argv, | ||
| EvaluateTimeFct2d | evalFunc ) |
Call the evalFunc by respect to the arguments given to the program.
| argc | : number of arguments passed to the program |
| argv | : table of arguments passed to the program |
| evalFunc | : function which evaluates the performance of an other function |
Definition at line 124 of file micro_benchmark_common.cpp.
References cutStringOnChars(), micro_benchmarkHelpFunction2d(), and PIN_THREAD_TO_CORE.
Here is the call graph for this function:| void micro_benchmarkVecToMap | ( | MapOrderedTime & | mapOrderTime, |
| const VecEllapsedTime & | vecTime ) |
Fill the map of ordered time with the vector.
| [out] | mapOrderTime | : map of the ordered ellapsed times |
| vecTime | : input ellapsed times |
Definition at line 15 of file micro_benchmark_common.cpp.
Referenced by micro_benchmarkNs(), and micro_benchmarkRdtsc().
Here is the caller graph for this function: