__init__.py (8297:d57afdcf38f5) | __init__.py (8986:4cc63185478b) |
---|---|
1# Copyright (c) 2007 The Regents of The University of Michigan 2# Copyright (c) 2010 The Hewlett-Packard Development Company 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; --- 68 unchanged lines hidden (view full) --- 77 v2 = stat2.name.split('.') 78 return v1 < v2 79 80 stats_list.sort(less) 81 for stat in stats_list: 82 stats_dict[stat.name] = stat 83 stat.enable() 84 | 1# Copyright (c) 2007 The Regents of The University of Michigan 2# Copyright (c) 2010 The Hewlett-Packard Development Company 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; --- 68 unchanged lines hidden (view full) --- 77 v2 = stat2.name.split('.') 78 return v1 < v2 79 80 stats_list.sort(less) 81 for stat in stats_list: 82 stats_dict[stat.name] = stat 83 stat.enable() 84 |
85 internal.stats.enable(); 86 |
|
85def prepare(): 86 '''Prepare all stats for data access. This must be done before 87 dumping and serialization.''' 88 89 for stat in stats_list: 90 stat.prepare() 91 92lastDump = 0 --- 45 unchanged lines hidden --- | 87def prepare(): 88 '''Prepare all stats for data access. This must be done before 89 dumping and serialization.''' 90 91 for stat in stats_list: 92 stat.prepare() 93 94lastDump = 0 --- 45 unchanged lines hidden --- |