Last change
on this file since 8e860a7 was
57e0289,
checked in by Thierry Delisle <tdelisle@…>, 4 years ago
|
Added stats option to print stats per expression in new-ast resolution
|
-
Property mode set to
100644
|
File size:
741 bytes
|
Rev | Line | |
---|
[57e0289] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2019 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // ResolveTime.h -- |
---|
| 8 | // |
---|
| 9 | // Author : Thierry Delisle |
---|
| 10 | // Created On : Wed Sep 16 15:45:51 2020 |
---|
| 11 | // Last Modified By : |
---|
| 12 | // Last Modified On : |
---|
| 13 | // Update Count : |
---|
| 14 | // |
---|
| 15 | |
---|
| 16 | #pragma once |
---|
| 17 | |
---|
| 18 | #include "Common/Stats/Base.h" |
---|
| 19 | |
---|
| 20 | #if defined( NO_STATISTICS ) |
---|
| 21 | #define NO_RESOLVE_TIME_STATISTICS |
---|
| 22 | #endif |
---|
| 23 | |
---|
| 24 | namespace ast { |
---|
| 25 | class Expr; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | namespace Stats { |
---|
| 29 | namespace ResolveTime { |
---|
| 30 | #if defined(NO_RESOLVE_TIME_STATISTICS) |
---|
| 31 | void start( const ast::Expr * ) {} |
---|
| 32 | void stop() {} |
---|
| 33 | #else |
---|
| 34 | void start( const ast::Expr * ); |
---|
| 35 | void stop(); |
---|
| 36 | #endif |
---|
| 37 | }; |
---|
| 38 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.