mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Move unimportant fields to back of FileRead class.
This commit is contained in:
parent
31e2bc1141
commit
c20da5ea70
@ -112,7 +112,6 @@ private:
|
|||||||
FileRead( FILE* f, const char* fn )
|
FileRead( FILE* f, const char* fn )
|
||||||
: m_stream( LZ4_createStreamDecode() )
|
: m_stream( LZ4_createStreamDecode() )
|
||||||
, m_file( f )
|
, m_file( f )
|
||||||
, m_filename( fn )
|
|
||||||
, m_buf( m_bufData[1] )
|
, m_buf( m_bufData[1] )
|
||||||
, m_second( m_bufData[0] )
|
, m_second( m_bufData[0] )
|
||||||
, m_offset( 0 )
|
, m_offset( 0 )
|
||||||
@ -120,6 +119,7 @@ private:
|
|||||||
, m_signalSwitch( false )
|
, m_signalSwitch( false )
|
||||||
, m_signalAvailable( false )
|
, m_signalAvailable( false )
|
||||||
, m_exit( false )
|
, m_exit( false )
|
||||||
|
, m_filename( fn )
|
||||||
{
|
{
|
||||||
char hdr[4];
|
char hdr[4];
|
||||||
if( fread( hdr, 1, sizeof( hdr ), m_file ) != sizeof( hdr ) ) throw NotTracyDump();
|
if( fread( hdr, 1, sizeof( hdr ), m_file ) != sizeof( hdr ) ) throw NotTracyDump();
|
||||||
@ -219,8 +219,6 @@ private:
|
|||||||
|
|
||||||
LZ4_streamDecode_t* m_stream;
|
LZ4_streamDecode_t* m_stream;
|
||||||
FILE* m_file;
|
FILE* m_file;
|
||||||
std::string m_filename;
|
|
||||||
char m_bufData[2][BufSize];
|
|
||||||
char* m_buf;
|
char* m_buf;
|
||||||
char* m_second;
|
char* m_second;
|
||||||
size_t m_offset;
|
size_t m_offset;
|
||||||
@ -231,6 +229,9 @@ private:
|
|||||||
std::atomic<bool> m_exit;
|
std::atomic<bool> m_exit;
|
||||||
|
|
||||||
std::thread m_decThread;
|
std::thread m_decThread;
|
||||||
|
|
||||||
|
std::string m_filename;
|
||||||
|
char m_bufData[2][BufSize];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user