https://github.com/francescmm/benchmarktool
C++ library that tracks the time it takes a function to run. It creates a calling tree.
https://github.com/francescmm/benchmarktool
benchmark cpp cpp17 multi-thread
Last synced: 8 months ago
JSON representation
C++ library that tracks the time it takes a function to run. It creates a calling tree.
- Host: GitHub
- URL: https://github.com/francescmm/benchmarktool
- Owner: francescmm
- License: other
- Created: 2020-06-07T08:48:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T06:41:40.000Z (over 5 years ago)
- Last Synced: 2025-04-19T17:23:37.833Z (9 months ago)
- Topics: benchmark, cpp, cpp17, multi-thread
- Language: C++
- Homepage: https://www.francescmm.com
- Size: 186 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BenchmarkTool
In this repository you can find the BenchmarkTool project.
BenchmarkTool tracks the time it takes a method call to run. It acts as singleton object but supports multi-threading.
After the instance is destroyed, the results are printed to a file using the specified format. If not format is defined, it will print to a regular text file.
Follow the instructions for usage:
1. Create an instance: BenchmarkTool::getInstance();
2. If you want, add a different output format by using: BenchmarkTool::getInstance()->setOutputFormat(...).
3. If you want to retrieve the current tree view, you can do the following method call: std::string output; output << BenchmarkTool::getInstance();