MCPcopy Create free account
hub / github.com/NativeScript/android / Node

Class Node

test-app/runtime/src/main/cpp/include/v8-profiler.h:706–758  ·  view source on GitHub ↗

* Represents a node in the call-graph. */

Source from the content-addressed store, hash-verified

704 * Represents a node in the call-graph.
705 */
706 struct Node {
707 /**
708 * Name of the function. May be empty for anonymous functions or if the
709 * script corresponding to this function has been unloaded.
710 */
711 Local<String> name;
712
713 /**
714 * Name of the script containing the function. May be empty if the script
715 * name is not available, or if the script has been unloaded.
716 */
717 Local<String> script_name;
718
719 /**
720 * id of the script where the function is located. May be equal to
721 * v8::UnboundScript::kNoScriptId in cases where the script doesn't exist.
722 */
723 int script_id;
724
725 /**
726 * Start position of the function in the script.
727 */
728 int start_position;
729
730 /**
731 * 1-indexed line number where the function starts. May be
732 * kNoLineNumberInfo if no line number information is available.
733 */
734 int line_number;
735
736 /**
737 * 1-indexed column number where the function starts. May be
738 * kNoColumnNumberInfo if no line number information is available.
739 */
740 int column_number;
741
742 /**
743 * Unique id of the node.
744 */
745 uint32_t node_id;
746
747 /**
748 * List of callees called from this node for which we have sampled
749 * allocations. The lifetime of the children is scoped to the containing
750 * AllocationProfile.
751 */
752 std::vector<Node*> children;
753
754 /**
755 * List of self allocations done by this node in the call-graph.
756 */
757 std::vector<Allocation> allocations;
758 };
759
760 /**
761 * Represent a single sample recorded for an allocation.

Callers 3

operator[]Method · 0.85
try_emplace_implMethod · 0.85
insertOrAssignImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected