mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Retrieve file name string idx in source view.
This commit is contained in:
parent
16686739f6
commit
22e9135ab1
@ -19,6 +19,7 @@ namespace tracy
|
||||
SourceView::SourceView( ImFont* font )
|
||||
: m_font( font )
|
||||
, m_file( nullptr )
|
||||
, m_fileStringIdx( 0 )
|
||||
, m_symAddr( 0 )
|
||||
, m_currentAddr( 0 )
|
||||
, m_targetAddr( 0 )
|
||||
@ -51,6 +52,7 @@ void SourceView::Open( const char* fileName, int line, uint64_t baseAddr, uint64
|
||||
if( m_file != fileName )
|
||||
{
|
||||
m_file = fileName;
|
||||
m_fileStringIdx = worker.FindStringIdx( fileName );
|
||||
m_lines.clear();
|
||||
if( fileName )
|
||||
{
|
||||
|
@ -44,6 +44,7 @@ private:
|
||||
|
||||
ImFont* m_font;
|
||||
const char* m_file;
|
||||
uint32_t m_fileStringIdx;
|
||||
uint64_t m_symAddr;
|
||||
uint64_t m_currentAddr;
|
||||
uint64_t m_baseAddr;
|
||||
|
Loading…
Reference in New Issue
Block a user