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

Perform source file name substitution.

This commit is contained in:
Bartosz Taudul
2020-04-17 19:09:13 +02:00
parent 47cfb4ae35
commit 01d7fefe52
8 changed files with 64 additions and 47 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "TracyFilesystem.hpp"
#include "TracyView.hpp"
namespace tracy
{
bool SourceFileValid( const char* fn, uint64_t olderThan, const View& view )
{
struct stat buf;
if( stat( view.SourceSubstitution( fn ), &buf ) == 0 && ( buf.st_mode & S_IFREG ) != 0 )
{
return (uint64_t)buf.st_mtime < olderThan;
}
return false;
}
}