base.cc (6978:ab05e20dc4a7) base.cc (6979:7732bca47f60)
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;

--- 74 unchanged lines hidden (view full) ---

83 avgRefs = totalRefs/sampledRefs;
84
85 warmupCycle
86 .name(name + ".warmup_cycle")
87 .desc("Cycle when the warmup percentage was hit.")
88 ;
89
90 occupancies
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;

--- 74 unchanged lines hidden (view full) ---

83 avgRefs = totalRefs/sampledRefs;
84
85 warmupCycle
86 .name(name + ".warmup_cycle")
87 .desc("Cycle when the warmup percentage was hit.")
88 ;
89
90 occupancies
91 .init(cache->numCpus())
91 .init(cache->numCpus() + 1)
92 .name(name + ".occ_blocks")
93 .desc("Average occupied blocks per context")
94 .flags(nozero | nonan)
95 ;
96
97 avgOccs
98 .name(name + ".occ_%")
99 .desc("Average percentage of cache occupancy")
100 .flags(nozero)
101 ;
102
103 avgOccs = occupancies / Stats::constant(numBlocks);
104
105 registerExitCallback(new BaseTagsCallback(this));
106}
92 .name(name + ".occ_blocks")
93 .desc("Average occupied blocks per context")
94 .flags(nozero | nonan)
95 ;
96
97 avgOccs
98 .name(name + ".occ_%")
99 .desc("Average percentage of cache occupancy")
100 .flags(nozero)
101 ;
102
103 avgOccs = occupancies / Stats::constant(numBlocks);
104
105 registerExitCallback(new BaseTagsCallback(this));
106}