Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Call NameLoad keyword Call NameLoad BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str Call NameLoad keyword NameLoad Call AttributeLoad NameLoad attr NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A os test CollectorTestCase test get_collector_config test unittest mock Mock mock patch N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO diamond.collector Collector kvm KVMCollector TestKVMCollector N/A CollectorTestCase N/A setUp N/A N/A self N/A N/A N/A config N/A get_collector_config KVMCollector N/A interval 10 N/A N/A self collector N/A KVMCollector config None N/A N/A N/A self collector PROC N/A N/A N/A N/A os path dirname __file__ /fixtures/ N/A test_import N/A N/A self N/A N/A N/A N/A N/A self assertTrue KVMCollector N/A test_should_work_with_synthetic_data N/A N/A self publish_mock N/A N/A N/A patch_open N/A patch __builtin__.open N/A Mock return_value N/A StringIO N/A 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 
0
0
0
0
0
0
0
0
0
0
0
 N/A N/A N/A patch_open start N/A N/A N/A N/A self collector collect N/A N/A N/A patch_open stop N/A N/A N/A self assertPublishedMany publish_mock N/A N/A N/A N/A N/A self collector collect N/A metrics N/A efer_reload exits fpu_reload halt_exits halt_wakeup host_state_reload hypercalls insn_emulation insn_emulation_fail invlpg io_exits irq_exits irq_injections irq_window largepages mmio_exits mmu_cache_miss mmu_flooded mmu_pde_zapped mmu_pte_updated mmu_pte_write mmu_recycled mmu_shadow_zapped mmu_unsync nmi_injections nmi_window pf_fixed pf_guest remote_tlb_flush request_irq signal_exits tlb_flush 0.0 1436135848.0 121764903.5 544586282.6 235093451.4 801854250.6 0.0 1314391264.7 0.0 0.0 248822813.2 701647108.4 986654069.6 162240965.2 351789.4 20169.4 1643.3 0.0 0.0 0.0 11144.0 0.0 384.7 0.0 0.0 0.0 355636.1 0.0 111.2 0.0 0.0 0.0 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A patch os.access N/A Mock return_value True N/A N/A patch object Collector publish N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main