diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2020-05-23 16:14:57 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2020-05-23 16:44:19 +0300 |
commit | ee22cf3b0c7ea7706db09c242b5ffd577cab7a36 (patch) | |
tree | 1ca9c6feeec17ef7bee570a76051e4f31418acf5 /server/TracyFilesystem.cpp | |
parent | d470202bca13948b00fd5d898bcd28f93c050cbe (diff) |
Use cached source files.
Diffstat (limited to 'server/TracyFilesystem.cpp')
-rw-r--r-- | server/TracyFilesystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TracyFilesystem.cpp b/server/TracyFilesystem.cpp index 6b4bdd8a..2570cd30 100644 --- a/server/TracyFilesystem.cpp +++ b/server/TracyFilesystem.cpp @@ -4,8 +4,9 @@ namespace tracy { -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 ) { + if( worker.GetSourceFileFromCache( fn ).data != nullptr ) return true; struct stat buf; if( stat( view.SourceSubstitution( fn ), &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0 ) { |