mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add support for custom text in ImportEventTimeline.
This commit is contained in:
@@ -328,6 +328,12 @@ Worker::Worker( const std::string& program, const std::vector<ImportEventTimelin
|
||||
zone->SetEnd( -1 );
|
||||
zone->SetChild( -1 );
|
||||
|
||||
if( !v.text.empty() )
|
||||
{
|
||||
auto& extra = RequestZoneExtra( *zone );
|
||||
extra.text = StringIdx( StoreString( v.text.c_str(), v.text.size() ).idx );
|
||||
}
|
||||
|
||||
m_threadCtxData = NoticeThread( v.tid );
|
||||
NewZone( zone, v.tid );
|
||||
}
|
||||
|
||||
@@ -95,6 +95,7 @@ public:
|
||||
uint64_t tid;
|
||||
uint64_t timestamp;
|
||||
std::string name;
|
||||
std::string text;
|
||||
bool isEnd;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user