MCPcopy Index your code
hub / github.com/nodejs/node / to_string

Method to_string

deps/v8/tools/locs.py:187–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

185 return self.expanded / (self.loc+1)
186
187 def to_string(self):
188 exp_bytes, exp_unit = fmt_bytes(self.expanded_bytes)
189 in_bytes, in_unit = fmt_bytes(self.in_bytes)
190 return "{:>9,} LoC ({:>7,} {}) to {:>12,} LoC ({:>7,} {}) ({:>5.0f}x)".format(
191 self.loc, in_bytes, in_unit, self.expanded, exp_bytes, exp_unit, self.ratio())
192
193
194class File(CompilationData):

Callers

nothing calls this directly

Calls 3

ratioMethod · 0.95
fmt_bytesFunction · 0.85
formatMethod · 0.65

Tested by

no test coverage detected