1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use cached source files.

This commit is contained in:
Bartosz Taudul
2020-05-23 15:14:57 +02:00
parent d470202bca
commit ee22cf3b0c
5 changed files with 59 additions and 43 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ namespace tracy
{
class View;
class Worker;
static inline bool FileExists( const char* fn )
{
@@ -15,7 +16,7 @@ static inline bool FileExists( const char* fn )
return stat( fn, &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0;
}
bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view );
bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view, const Worker& worker );
bool SourceFileValid( const char* fn, uint64_t olderThan );
}