add flag to toggle tracy (disabled for now)

This commit is contained in:
2026-02-24 20:39:48 +01:00
parent d88b66c058
commit 349d614611
20 changed files with 153 additions and 24 deletions

View File

@ -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;