update tracy from 11.0 to 13.1 and fix build with tracy enabled
This commit is contained in:
@@ -27,7 +27,7 @@ bool SetText(const std::string& text, tracy::ScopedZone* zone) {
|
||||
class PyScopedZone {
|
||||
public:
|
||||
PyScopedZone(const std::optional<std::string>& name, uint32_t color,
|
||||
std::optional<int> depth, bool active,
|
||||
std::optional<int32_t> depth, bool active,
|
||||
const std::string& function, const std::string& source,
|
||||
uint32_t line)
|
||||
: m_name(name),
|
||||
@@ -77,7 +77,7 @@ class PyScopedZone {
|
||||
m_zone = new tracy::ScopedZone(
|
||||
m_line, m_source.c_str(), m_source.size(), m_function.c_str(),
|
||||
m_function.size(), m_name ? m_name->c_str() : nullptr,
|
||||
m_name ? m_name->size() : 0ul, m_color, m_active);
|
||||
m_name ? m_name->size() : 0ul, m_color, -1, m_active);
|
||||
}
|
||||
|
||||
void Exit() {
|
||||
@@ -88,7 +88,7 @@ class PyScopedZone {
|
||||
private:
|
||||
std::optional<std::string> m_name;
|
||||
uint32_t m_color;
|
||||
std::optional<int> m_depth;
|
||||
std::optional<int32_t> m_depth;
|
||||
bool m_active;
|
||||
|
||||
std::string m_function;
|
||||
@@ -101,7 +101,7 @@ class PyScopedZone {
|
||||
|
||||
class PyScopedZone {
|
||||
public:
|
||||
PyScopedZone(const std::optional<std::string>&, uint32_t, std::optional<int>,
|
||||
PyScopedZone(const std::optional<std::string>&, uint32_t, std::optional<int32_t>,
|
||||
bool, const std::string&, const std::string&, uint32_t line) {}
|
||||
virtual ~PyScopedZone(){};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user