info.hh (6172:278d0e37eba2) | info.hh (6212:64c3b989238c) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 166 unchanged lines hidden (view full) --- 175 Counter underflow; 176 Counter overflow; 177 VCounter cvec; 178 Counter sum; 179 Counter squares; 180 Counter samples; 181}; 182 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 166 unchanged lines hidden (view full) --- 175 Counter underflow; 176 Counter overflow; 177 VCounter cvec; 178 Counter sum; 179 Counter squares; 180 Counter samples; 181}; 182 |
183enum DistType { Deviation, Dist }; 184 |
|
183struct DistParams : public StorageParams 184{ | 185struct DistParams : public StorageParams 186{ |
185 const bool fancy; | 187 const DistType type; |
186 187 /** The minimum value to track. */ 188 Counter min; 189 /** The maximum value to track. */ 190 Counter max; 191 /** The number of entries in each bucket. */ 192 Counter bucket_size; 193 /** The number of buckets. Equal to (max-min)/bucket_size. */ 194 size_type buckets; 195 | 188 189 /** The minimum value to track. */ 190 Counter min; 191 /** The maximum value to track. */ 192 Counter max; 193 /** The number of entries in each bucket. */ 194 Counter bucket_size; 195 /** The number of buckets. Equal to (max-min)/bucket_size. */ 196 size_type buckets; 197 |
196 explicit DistParams(bool f) : fancy(f) {} | 198 explicit DistParams(DistType t) : type(t) {} |
197}; 198 199class DistInfo : public Info 200{ 201 public: 202 /** Local storage for the entry values, used for printing. */ 203 DistData data; 204}; --- 46 unchanged lines hidden --- | 199}; 200 201class DistInfo : public Info 202{ 203 public: 204 /** Local storage for the entry values, used for printing. */ 205 DistData data; 206}; --- 46 unchanged lines hidden --- |