Sha256: 98c44bf5c531121ac79669575e9d129f65ce4a5d215e3234e4db8dd04f1b4f7d
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module CognitiveDistance::Measurements class ModuleHops extend Measurement register :module_hops def measure tree CognitiveDistance::Transforms::CallTreeToModuleBoundaryGraph. transform(tree).edges.size end def self.measure obj, meth new.measure(CognitiveDistance::Tracer.new(obj).trace(meth)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cognitive_distance-0.0.1.pre | lib/cognitive_distance/measurements/module_hops.rb |