mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-06 08:55:30 +00:00
IsFrameExternal() can be const.
This commit is contained in:
@@ -331,7 +331,7 @@ private:
|
||||
|
||||
void AddAnnotation( int64_t start, int64_t end );
|
||||
|
||||
bool IsFrameExternal( const char* filename, const char* image );
|
||||
bool IsFrameExternal( const char* filename, const char* image ) const;
|
||||
uint32_t GetThreadColor( uint64_t thread, int depth );
|
||||
uint32_t GetSrcLocColor( const SourceLocation& srcloc, int depth );
|
||||
uint32_t GetRawSrcLocColor( const SourceLocation& srcloc, int depth );
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
bool View::IsFrameExternal( const char* filename, const char* image )
|
||||
bool View::IsFrameExternal( const char* filename, const char* image ) const
|
||||
{
|
||||
if( strncmp( filename, "/usr/", 5 ) == 0 || strncmp( filename, "/lib/", 5 ) == 0 || strcmp( filename, "[unknown]" ) == 0 || strcmp( filename, "<kernel>" ) == 0 ) return true;
|
||||
if( strncmp( filename, "C:\\Program Files\\", 17 ) == 0 || strncmp( filename, "d:\\a01\\_work\\", 13 ) == 0 ) return true;
|
||||
|
||||
Reference in New Issue
Block a user