add flag to toggle tracy (disabled for now)
This commit is contained in:
@ -1,8 +1,13 @@
|
||||
#include "puzzle.hpp"
|
||||
#include "tracy.hpp"
|
||||
#include "config.hpp"
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
#ifdef TRACY
|
||||
#include "tracy.hpp"
|
||||
#include <tracy/Tracy.hpp>
|
||||
#endif
|
||||
|
||||
auto Block::Hash() const -> int {
|
||||
std::string s = std::format("{},{},{},{}", x, y, width, height);
|
||||
return std::hash<std::string>{}(s);
|
||||
@ -267,6 +272,10 @@ auto State::GetNextStates() const -> std::vector<State> {
|
||||
auto State::Closure() const
|
||||
-> std::pair<std::vector<State>,
|
||||
std::vector<std::pair<std::size_t, std::size_t>>> {
|
||||
#ifdef TRACY
|
||||
ZoneScoped;
|
||||
#endif
|
||||
|
||||
std::vector<State> states;
|
||||
std::vector<std::pair<std::size_t, std::size_t>> links;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user