MCPcopy Create free account
hub / github.com/Snapchat/dagger-browser / getMemorySize

Method getMemorySize

browser/src/models/ClassSize.tsx:37–39  ·  view source on GitHub ↗

Returns estimated memory size in bytes.

()

Source from the content-addressed store, hash-verified

35
36 /** Returns estimated memory size in bytes. */
37 getMemorySize(): number {
38 return this.classInfo.code_size + this.classInfo.method_count * METHOD_SIZE_BYTES + this.classInfo.field_count * FIELD_SIZE_BYTES;
39 }
40
41 add(classSize: ClassSize) {
42 this.classInfo.method_count += classSize.classInfo.method_count;

Callers 2

resultMethod · 0.80
getWeightMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected