1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add UI for source location substitutions.

This commit is contained in:
Bartosz Taudul
2020-04-17 18:38:14 +02:00
parent b937ad101f
commit 5f22e35c26
2 changed files with 85 additions and 1 deletions
+11
View File
@@ -7,6 +7,7 @@
#include <memory>
#include <string>
#include <thread>
#include <regex>
#include <vector>
#include "TracyBuzzAnim.hpp"
@@ -423,6 +424,16 @@ private:
bool m_reconnectRequested = false;
bool m_firstFrame = true;
struct SourceRegex
{
std::string pattern;
std::string target;
std::regex regex;
};
std::vector<SourceRegex> m_sourceSubstitutions;
bool m_sourceRegexValid = true;
struct FindZone {
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
enum class GroupBy : int { Thread, UserText, Callstack, Parent, NoGrouping };