-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from JPenuchot/dev
0.1.0 update
- Loading branch information
Showing
35 changed files
with
1,058 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.cache/ | ||
generated-docs/ | ||
build/ | ||
builds/ | ||
CMakeUserPresets.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"version": 4, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 23, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "dev", | ||
"displayName": "Development", | ||
"description": "Development build, provides compile_commands.json", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build", | ||
"cacheVariables": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON", | ||
"CMAKE_BUILD_TYPE": "Debug", | ||
"CMAKE_CXX_COMPILER": "clang++", | ||
"CMAKE_C_COMPILER": "clang", | ||
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-checks=-*,readability-*" | ||
} | ||
}, | ||
{ | ||
"name": "release", | ||
"displayName": "Release", | ||
"description": "Release build", | ||
"binaryDir": "${sourceDir}/build/release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "debug", | ||
"inherits": "release", | ||
"displayName": "Debug", | ||
"description": "Debug build", | ||
"binaryDir": "${sourceDir}/build/debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "dev", | ||
"configurePreset": "dev" | ||
}, | ||
{ | ||
"name": "release", | ||
"configurePreset": "release" | ||
}, | ||
{ | ||
"name": "debug", | ||
"configurePreset": "debug" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,57 @@ | ||
#pragma once | ||
|
||
#include "grapher/plotters/plotter_i.hpp" | ||
#include "grapher/plotters/plotter_base.hpp" | ||
|
||
namespace grapher::plotters { | ||
|
||
/// \ingroup plotters | ||
/// For each group descriptor, generates a graph comparing all benchmark cases | ||
/// in the set. | ||
/// | ||
/// Plotter-specific JSON parameters: | ||
/// - `value_json_pointer` (`string`): pointer to JSON value to measure | ||
/// - `draw_average` (`bool`): enable average curve drawing | ||
/// - `draw_points` (`bool`): enable point value drawing | ||
/// - `group_descriptors` (group descriptors): see group_descriptor_t | ||
/// documentation | ||
/// | ||
/// \copydetails base_default_config | ||
/// | ||
/// Example config: | ||
/// \code{.json} | ||
/// { | ||
/// "draw_average": true, | ||
/// "draw_points": true, | ||
/// "group_descriptors": [ | ||
/// { | ||
/// "name": "All", | ||
/// "predicates": [ | ||
/// { | ||
/// "pointer": "/name", | ||
/// "regex": "*", | ||
/// "type": "regex" | ||
/// } | ||
/// ] | ||
/// } | ||
/// ], | ||
/// "height": 500, | ||
/// "legend_title": "Timings", | ||
/// "plot_file_extensions": [ | ||
/// ".svg", | ||
/// ".png" | ||
/// ], | ||
/// "plotter": "compare", | ||
/// "value_json_pointer": "/dur", | ||
/// "width": 1500, | ||
/// "x_label": "Benchmark size factor", | ||
/// "y_label": "Time (µs)" | ||
/// } | ||
/// \endcode | ||
|
||
struct plotter_compare_t : plotter_i { | ||
struct plotter_compare_t : plotter_base_t { | ||
void plot(benchmark_set_t const &bset, std::filesystem::path const &dest, | ||
nlohmann::json const &config) const override; | ||
grapher::json_t const &config) const override; | ||
|
||
std::string_view get_help() const override; | ||
|
||
nlohmann::json get_default_config() const override; | ||
grapher::json_t get_default_config() const override; | ||
}; | ||
|
||
} // namespace grapher::plotters |
Oops, something went wrong.