xref: /llvm-project/clang/test/Misc/print-stats-vfs.test (revision 6e4dcbb21dab47e520f2cd19e7017af27328669e)
1*6e4dcbb2SJan Svoboda// RUN: rm -rf %t
2*6e4dcbb2SJan Svoboda// RUN: split-file %s %t
3*6e4dcbb2SJan Svoboda
4*6e4dcbb2SJan Svoboda// RUN: %clang_cc1 -fsyntax-only %t/tu.c -I %t/dir1 -I %t/dir2 -print-stats 2>&1 | FileCheck %s
5*6e4dcbb2SJan Svoboda
6*6e4dcbb2SJan Svoboda//--- tu.c
7*6e4dcbb2SJan Svoboda#include "header.h"
8*6e4dcbb2SJan Svoboda//--- dir1/other.h
9*6e4dcbb2SJan Svoboda//--- dir2/header.h
10*6e4dcbb2SJan Svoboda
11*6e4dcbb2SJan Svoboda// CHECK:      *** Virtual File System Stats:
12*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} status() calls
13*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} openFileForRead() calls
14*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} dir_begin() calls
15*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} getRealPath() calls
16*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} exists() calls
17*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} isLocal() calls
18