Trees | Indices | Help |
|
---|
|
1 """ 2 Objective-C runtime wrapper for use by LLDB Python formatters 3 4 part of The LLVM Compiler Infrastructure 5 This file is distributed under the University of Illinois Open Source 6 License. See LICENSE.TXT for details. 7 """ 8 import lldb.formatters.metrics 93512 self.data = {} 13 self.statistics = lldb.formatters.metrics.Metrics() 14 self.statistics.add_metric('hit') 15 self.statistics.add_metric('miss')16 2123 if not(ok_to_replace) and self.look_for_key(key): 24 return False 25 self.data[key] = value 26 return True2729 if self.look_for_key(key): 30 self.statistics.metric_hit('hit',key) 31 return self.data[key] 32 else: 33 self.statistics.metric_hit('miss',key) 34 return default
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:38 2013 | http://epydoc.sourceforge.net |