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:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user