| Last change
 on this file since 7fdb8434 was             5f225f5, checked in by Andrew Beach <ajbeach@…>, 18 months ago | 
        
          | 
Perhaps only src/Makefile.am needed to change, but I did a text search to try and be absolutely sure I got everything.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.2 KB | 
      
      
| Line |  | 
|---|
| 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 | // Stats.hpp -- | 
|---|
| 8 | // | 
|---|
| 9 | // Author           : Thierry Delisle | 
|---|
| 10 | // Created On       : Thu Feb 28 11::27:10 2019 | 
|---|
| 11 | // Last Modified By : | 
|---|
| 12 | // Last Modified On : | 
|---|
| 13 | // Update Count     : | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #pragma once | 
|---|
| 17 |  | 
|---|
| 18 | // Entry point for compiler analytics. | 
|---|
| 19 | /* | 
|---|
| 20 | The compiler currently supports 3 times of analytics: | 
|---|
| 21 | - generic counters | 
|---|
| 22 | - heap statistics | 
|---|
| 23 | - timiing statistics | 
|---|
| 24 |  | 
|---|
| 25 | These can be enabled using the --stats option, to which a comma seperated list of options can be passed. | 
|---|
| 26 | For more information, see Stats/Stats.cpp | 
|---|
| 27 |  | 
|---|
| 28 | Counters: | 
|---|
| 29 | The counters are a generic tree of counters that print in a 2-column output format. | 
|---|
| 30 | They can count maximums, averages, totals, etc. | 
|---|
| 31 |  | 
|---|
| 32 | Currently all counters are under the same enable block, this could be changed if needed. | 
|---|
| 33 |  | 
|---|
| 34 | Heap: | 
|---|
| 35 | Measures the total calls malloc and free as the peak number of allocations per pass | 
|---|
| 36 |  | 
|---|
| 37 | Timing: | 
|---|
| 38 | Comming soon | 
|---|
| 39 | */ | 
|---|
| 40 |  | 
|---|
| 41 |  | 
|---|
| 42 | #include "Common/Stats/Counter.hpp" | 
|---|
| 43 | #include "Common/Stats/Heap.hpp" | 
|---|
| 44 | #include "Common/Stats/Time.hpp" | 
|---|
| 45 |  | 
|---|
| 46 | namespace Stats { | 
|---|
| 47 | void parse_params(const char * const params); | 
|---|
| 48 | void print(); | 
|---|
| 49 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.