fix: breakpad use miniz
Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
This commit is contained in:
61
third_party/tracy/server/TracyThreadCompress.hpp
vendored
Normal file
61
third_party/tracy/server/TracyThreadCompress.hpp
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
#ifndef __TRACY__THREADCOMPRESS_HPP__
|
||||
#define __TRACY__THREADCOMPRESS_HPP__
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../public/common/TracyForceInline.hpp"
|
||||
#include "tracy_robin_hood.h"
|
||||
#include "TracyVector.hpp"
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
class FileRead;
|
||||
class FileWrite;
|
||||
|
||||
class ThreadCompress
|
||||
{
|
||||
public:
|
||||
ThreadCompress();
|
||||
|
||||
void InitZero();
|
||||
void Load( FileRead& f );
|
||||
void Save( FileWrite& f ) const;
|
||||
|
||||
tracy_force_inline uint16_t CompressThread( uint64_t thread )
|
||||
{
|
||||
if( m_threadLast.first == thread ) return m_threadLast.second;
|
||||
return CompressThreadReal( thread );
|
||||
}
|
||||
|
||||
tracy_force_inline uint64_t DecompressThread( uint16_t thread ) const
|
||||
{
|
||||
assert( thread < m_threadExpand.size() );
|
||||
return m_threadExpand[thread];
|
||||
}
|
||||
|
||||
tracy_force_inline uint16_t DecompressMustRaw( uint64_t thread ) const
|
||||
{
|
||||
auto it = m_threadMap.find( thread );
|
||||
assert( it != m_threadMap.end() );
|
||||
return it->second;
|
||||
}
|
||||
|
||||
tracy_force_inline bool Exists( uint64_t thread ) const
|
||||
{
|
||||
return m_threadMap.find( thread ) != m_threadMap.end();
|
||||
}
|
||||
|
||||
private:
|
||||
uint16_t CompressThreadReal( uint64_t thread );
|
||||
uint16_t CompressThreadNew( uint64_t thread );
|
||||
|
||||
unordered_flat_map<uint64_t, uint16_t> m_threadMap;
|
||||
Vector<uint64_t> m_threadExpand;
|
||||
std::pair<uint64_t, uint16_t> m_threadLast;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user