Skip to content

Commit

Permalink
wip: call_graph.json format updated
Browse files Browse the repository at this point in the history
  • Loading branch information
knebekaizer committed Mar 1, 2022
1 parent 417a2fe commit 64c6216
Showing 1 changed file with 107 additions and 107 deletions.
214 changes: 107 additions & 107 deletions examples/vector_size_sample/output/call_graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,241 +7,241 @@
"Project": {}
},
"nodes": {
"0": {
"label": "foo_adapter_default(const std::vector<int> &)",
"0x00000000": {
"label": "foo(const int *, unsigned long)",
"metadata": {
"usr": "c:@F@foo_adapter_default#&1$@N@std@N@__1@S@vector>#I#$@N@std@N@__1@S@allocator>#I#",
"signature": "int foo_adapter_default(const std::vector<int> & v)"
"usr": "c:@F@foo",
"location": "sample/fancy_ptr.cpp:38:16"
}
},
"1": {
"label": "foo(const int *, unsigned long)",
"0x00000001": {
"label": "foo_adapter_default(const std::vector<int> &)",
"metadata": {
"usr": "c:@F@foo",
"signature": "int foo(const int * buf, unsigned long n)"
"usr": "c:@N@xxx@F@foo_adapter_default#&1$@N@std@N@__1@S@vector>#I#$@N@std@N@__1@S@allocator>#I#",
"location": "sample/fancy_ptr.cpp:45:5"
}
},
"2": {
"0x00000002": {
"label": "operator[](std::vector<int>::size_type)",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@std@N@__1@S@allocator>#I@F@operator[]#l#1",
"signature": "std::vector<int>::const_reference operator[](std::vector<int>::size_type __n)"
"location": "/opt/llvm-13/include/c++/v1/vector:692:47"
}
},
"3": {
"0x00000003": {
"label": "size()",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@std@N@__1@S@allocator>#I@F@size#1",
"signature": "std::vector<int>::size_type size()"
"location": "/opt/llvm-13/include/c++/v1/vector:679:15"
}
},
"4": {
"0x00000004": {
"label": "foo_adapter_custom(const FancyVec &)",
"metadata": {
"usr": "c:@F@foo_adapter_custom#&1$@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I#",
"signature": "int foo_adapter_custom(const FancyVec & v)"
"location": "sample/fancy_ptr.cpp:53:5"
}
},
"5": {
"0x00000005": {
"label": "operator[](std::vector<int, my::custom_allocator<int>>::size_type)",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I@F@operator[]#l#1",
"signature": "std::vector<int, my::custom_allocator<int>>::const_reference operator[](std::vector<int, my::custom_allocator<int>>::size_type __n)"
"location": "/opt/llvm-13/include/c++/v1/vector:692:47"
}
},
"6": {
"0x00000006": {
"label": "operator[](size_t)",
"metadata": {
"usr": "c:@N@my@S@Ptr>#I@F@operator[]#l#1",
"signature": "const int & operator[](size_t n)"
"location": "sample/fancy_ptr.h:59:14"
}
},
"7": {
"0x00000007": {
"label": "size()",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I@F@size#1",
"signature": "std::vector<int, my::custom_allocator<int>>::size_type size()"
"location": "/opt/llvm-13/include/c++/v1/vector:679:15"
}
},
"8": {
"0x00000008": {
"label": "operator-<>(const Ptr<int> &, const Ptr<int>)",
"metadata": {
"usr": "c:@N@my@F@operator-<#I>#&1$@N@my@S@Ptr>#I#1S1_#",
"signature": "ptrdiff_t operator-(const Ptr<int> & a, const Ptr<int> b)"
"location": "sample/fancy_ptr.h:108:11"
}
},
"9": {
"0x00000009": {
"label": "Ptr(const Ptr<int> &)",
"metadata": {
"usr": "c:@N@my@S@Ptr>#I@F@Ptr#&1$@N@my@S@Ptr>#I#",
"signature": "void Ptr(const Ptr<int> & )"
"location": "sample/fancy_ptr.h:49:5"
}
},
"10": {
"0x0000000a": {
"label": "foo_at_rvalue(const FancyVec &, size_t)",
"metadata": {
"usr": "c:@F@foo_at_rvalue#&1$@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I#l#",
"signature": "int foo_at_rvalue(const FancyVec & v, size_t n)"
"location": "sample/fancy_ptr.cpp:57:5"
}
},
"11": {
"0x0000000b": {
"label": "at(std::vector<int, my::custom_allocator<int>>::size_type)",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I@F@at#l#1",
"signature": "std::vector<int, my::custom_allocator<int>>::const_reference at(std::vector<int, my::custom_allocator<int>>::size_type __n)"
"location": "/opt/llvm-13/include/c++/v1/vector:694:21"
}
},
"12": {
"0x0000000c": {
"label": "__throw_out_of_range()",
"metadata": {
"usr": "c:@N@std@N@__1@S@__vector_base>#I#$@N@my@S@custom_allocator>#I@F@__throw_out_of_range#1",
"signature": "void __throw_out_of_range()"
"location": "/opt/llvm-13/include/c++/v1/vector:405:10"
}
},
"13": {
"0x0000000d": {
"label": "__throw_out_of_range()",
"metadata": {
"usr": "c:@N@std@N@__1@S@__vector_base_common>#Vb1@F@__throw_out_of_range#1",
"signature": "void __throw_out_of_range()"
"location": "/opt/llvm-13/include/c++/v1/vector:310:27"
}
},
"14": {
"0x0000000e": {
"label": "foo_at_lvalue(FancyVec &, size_t)",
"metadata": {
"usr": "c:@F@foo_at_lvalue#&$@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I#l#",
"signature": "void foo_at_lvalue(FancyVec & v, size_t n)"
"location": "sample/fancy_ptr.cpp:61:6"
}
},
"15": {
"0x0000000f": {
"label": "at(std::vector<int, my::custom_allocator<int>>::size_type)",
"metadata": {
"usr": "c:@N@std@N@__1@S@vector>#I#$@N@my@S@custom_allocator>#I@F@at#l#",
"signature": "std::vector<int, my::custom_allocator<int>>::reference at(std::vector<int, my::custom_allocator<int>>::size_type __n)"
"location": "/opt/llvm-13/include/c++/v1/vector:693:21"
}
},
"16": {
"0x00000010": {
"label": "operator[](size_t)",
"metadata": {
"usr": "c:@N@my@S@Ptr>#I@F@operator[]#l#",
"signature": "int & operator[](size_t n)"
"location": "sample/fancy_ptr.h:57:8"
}
}
},
"edges": [
{
"label": "int foo(const int * buf, unsigned long n)",
"source": "0",
"target": "1"
"label": "sample/fancy_ptr.cpp:46:9",
"source": "0x00000001",
"target": "0x00000000"
},
{
"label": "std::vector<int>::const_reference operator[](std::vector<int>::size_type __n)",
"source": "0",
"target": "2"
"label": "sample/fancy_ptr.cpp:46:14",
"source": "0x00000001",
"target": "0x00000002"
},
{
"label": "std::vector<int>::size_type size()",
"source": "0",
"target": "3"
"label": "sample/fancy_ptr.cpp:46:20",
"source": "0x00000001",
"target": "0x00000003"
},
{
"label": "int foo(const int * buf, unsigned long n)",
"source": "4",
"target": "1"
"label": "sample/fancy_ptr.cpp:54:12",
"source": "0x00000004",
"target": "0x00000000"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::const_reference operator[](std::vector<int, my::custom_allocator<int>>::size_type __n)",
"source": "4",
"target": "5"
"label": "sample/fancy_ptr.cpp:54:17",
"source": "0x00000004",
"target": "0x00000005"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::size_type size()",
"source": "4",
"target": "7"
"label": "sample/fancy_ptr.cpp:54:23",
"source": "0x00000004",
"target": "0x00000007"
},
{
"label": "const int & operator[](size_t n)",
"source": "5",
"target": "6"
"label": "/opt/llvm-13/include/c++/v1/vector:1581:12",
"source": "0x00000005",
"target": "0x00000006"
},
{
"label": "ptrdiff_t operator-(const Ptr<int> & a, const Ptr<int> b)",
"source": "7",
"target": "8"
"label": "/opt/llvm-13/include/c++/v1/vector:680:40",
"source": "0x00000007",
"target": "0x00000008"
},
{
"label": "void Ptr(const Ptr<int> & )",
"source": "7",
"target": "9"
"label": "/opt/llvm-13/include/c++/v1/vector:680:55",
"source": "0x00000007",
"target": "0x00000009"
},
{
"label": "ptrdiff_t operator-(const Ptr<int> & a, const Ptr<int> b)",
"source": "7",
"target": "8"
"label": "/opt/llvm-13/include/c++/v1/vector:680:40",
"source": "0x00000007",
"target": "0x00000008"
},
{
"label": "void Ptr(const Ptr<int> & )",
"source": "7",
"target": "9"
"label": "/opt/llvm-13/include/c++/v1/vector:680:55",
"source": "0x00000007",
"target": "0x00000009"
},
{
"label": "ptrdiff_t operator-(const Ptr<int> & a, const Ptr<int> b)",
"source": "7",
"target": "8"
"label": "/opt/llvm-13/include/c++/v1/vector:680:40",
"source": "0x00000007",
"target": "0x00000008"
},
{
"label": "void Ptr(const Ptr<int> & )",
"source": "7",
"target": "9"
"label": "/opt/llvm-13/include/c++/v1/vector:680:55",
"source": "0x00000007",
"target": "0x00000009"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::const_reference at(std::vector<int, my::custom_allocator<int>>::size_type __n)",
"source": "10",
"target": "11"
"label": "sample/fancy_ptr.cpp:58:9",
"source": "0x0000000a",
"target": "0x0000000b"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::size_type size()",
"source": "11",
"target": "7"
"label": "/opt/llvm-13/include/c++/v1/vector:1597:16",
"source": "0x0000000b",
"target": "0x00000007"
},
{
"label": "void __throw_out_of_range()",
"source": "11",
"target": "12"
"label": "/opt/llvm-13/include/c++/v1/vector:1598:9",
"source": "0x0000000b",
"target": "0x0000000c"
},
{
"label": "const int & operator[](size_t n)",
"source": "11",
"target": "6"
"label": "/opt/llvm-13/include/c++/v1/vector:1599:12",
"source": "0x0000000b",
"target": "0x00000006"
},
{
"label": "void __throw_out_of_range()",
"source": "12",
"target": "13"
"label": "/opt/llvm-13/include/c++/v1/vector:407:9",
"source": "0x0000000c",
"target": "0x0000000d"
},
{
"label": "void __throw_out_of_range()",
"source": "12",
"target": "13"
"label": "/opt/llvm-13/include/c++/v1/vector:407:9",
"source": "0x0000000c",
"target": "0x0000000d"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::reference at(std::vector<int, my::custom_allocator<int>>::size_type __n)",
"source": "14",
"target": "15"
"label": "sample/fancy_ptr.cpp:62:2",
"source": "0x0000000e",
"target": "0x0000000f"
},
{
"label": "std::vector<int, my::custom_allocator<int>>::size_type size()",
"source": "15",
"target": "7"
"label": "/opt/llvm-13/include/c++/v1/vector:1588:16",
"source": "0x0000000f",
"target": "0x00000007"
},
{
"label": "void __throw_out_of_range()",
"source": "15",
"target": "12"
"label": "/opt/llvm-13/include/c++/v1/vector:1589:9",
"source": "0x0000000f",
"target": "0x0000000c"
},
{
"label": "int & operator[](size_t n)",
"source": "15",
"target": "16"
"label": "/opt/llvm-13/include/c++/v1/vector:1590:12",
"source": "0x0000000f",
"target": "0x00000010"
}
]
}
Expand Down

0 comments on commit 64c6216

Please sign in to comment.