diff options
| author | Dongdong Li <[email protected]> | 2013-11-22 15:38:36 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:59 -0700 |
| commit | ef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch) | |
| tree | c1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/statwraper.cpp | |
| parent | bdc0e550448f04c7c8f030b7421209bae37e651d (diff) | |
Delete Intersim
Code Review Issue: 113001
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/statwraper.cpp')
| -rw-r--r-- | src/intersim/statwraper.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/intersim/statwraper.cpp b/src/intersim/statwraper.cpp deleted file mode 100644 index c709dc0..0000000 --- a/src/intersim/statwraper.cpp +++ /dev/null @@ -1,59 +0,0 @@ -//a Wraper function for stats class -#include "stats.hpp" -#include <stdio.h> - -Stats* StatCreate (const char * name, double bin_size, int num_bins) { - Stats* newstat = new Stats(NULL,name,bin_size,num_bins); - newstat->Clear (); - return newstat; -} - -void StatClear(void * st) -{ - ((Stats *)st)->Clear(); -} - -void StatAddSample (void * st, int val) -{ - ((Stats *)st)->AddSample(val); -} - -double StatAverage(void * st) -{ - return((Stats *)st)->Average(); -} - -double StatMax(void * st) -{ - return((Stats *)st)->Max(); -} - -double StatMin(void * st) -{ - return((Stats *)st)->Min(); -} - -void StatDisp (void * st) -{ - printf ("Stats for "); - ((Stats *)st)->DisplayHierarchy(); - if (((Stats *)st)->NeverUsed()) { - printf (" was never updated!\n"); - } else { - printf("Min %f Max %f Average %f \n",((Stats *)st)->Min(),((Stats *)st)->Max(),StatAverage(st)); - ((Stats *)st)->Display(); - } -} - -#if 0 -int main () -{ - void * mytest = StatCreate("Test",1,5); - StatAddSample(mytest,4); - StatAddSample(mytest,4);StatAddSample(mytest,4); - StatAddSample(mytest,2); - StatDisp(mytest); -} -#endif - - |
