Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2020-05-23 16:14:57 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2020-05-23 16:44:19 +0300
commitee22cf3b0c7ea7706db09c242b5ffd577cab7a36 (patch)
tree1ca9c6feeec17ef7bee570a76051e4f31418acf5 /server/TracyFilesystem.cpp
parentd470202bca13948b00fd5d898bcd28f93c050cbe (diff)
Use cached source files.
Diffstat (limited to 'server/TracyFilesystem.cpp')
-rw-r--r--server/TracyFilesystem.cpp3
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 )
{