Module: ko/debug

Some simple helper functions useful when debugging.

This module will likely be merged into the console SDK soon.

Methods


require("ko/debug").sizeof(object [, giveSummary] [, inclueProto] [, includeGetters] [, processed])

Returns an approximate size of an object

Parameters:
Name Type Argument Default Description
object *

The thing to calculate the size of in bytes

giveSummary boolean <optional>
false

gives a summary at the end

inclueProto boolean <optional>
false

measure the size of prototype objects

includeGetters boolean <optional>
false

measure the size of getters

processed boolean <optional>
false

for internal use, do not use

Returns:

size in bytes of the parameter