I forgot to add the gprof output. This is the final mail for sure.
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls us/call us/call name
35.67 1.02 1.02 146000000 0.01 0.01 sdf_vector_scale
29.37 1.86 0.84 129379261 0.01 0.01 sdf_vector_add
27.98 2.66 0.80 1000000 0.80 2.85 get_min_distance
5.25 2.81 0.15 60000000 0.00 0.00 sdf_vector_dot
0.70 2.83 0.02 4000000 0.01 0.01 sdf_vector_sub
0.35 2.84 0.01 21000000 0.00 0.00 sdf_vector_length
0.35 2.85 0.01 1000000 0.01 0.01 sdf_vector_normalize
0.35 2.86 0.01 main
0.00 2.86 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
0.00 2.86 0.00 1 0.00 0.00
__static_initialization_and_destruction_0(int, int)
% the percentage of the total running time of the
time program used by this function.
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Call graph (explanation follows)
granularity: each sample hit covers 2 byte(s) for 0.35% of 2.86 seconds
index % time self children called name
<spontaneous>
[1] 100.0 0.01 2.85 main [1]
0.80 2.05 1000000/1000000 get_min_distance [2]
-----------------------------------------------
0.80 2.05 1000000/1000000 main [1]
[2] 99.7 0.80 2.05 1000000 get_min_distance [2]
1.02 0.00 146000000/146000000 sdf_vector_scale [3]
0.84 0.00 129379261/129379261 sdf_vector_add [4]
0.15 0.00 60000000/60000000 sdf_vector_dot [5]
0.02 0.00 4000000/4000000 sdf_vector_sub [6]
0.01 0.00 1000000/1000000 sdf_vector_normalize [7]
0.01 0.00 20000000/21000000 sdf_vector_length [8]
-----------------------------------------------
1.02 0.00 146000000/146000000 get_min_distance [2]
[3] 35.7 1.02 0.00 146000000 sdf_vector_scale [3]
-----------------------------------------------
0.84 0.00 129379261/129379261 get_min_distance [2]
[4] 29.4 0.84 0.00 129379261 sdf_vector_add [4]
-----------------------------------------------
0.15 0.00 60000000/60000000 get_min_distance [2]
[5] 5.2 0.15 0.00 60000000 sdf_vector_dot [5]
-----------------------------------------------
0.02 0.00 4000000/4000000 get_min_distance [2]
[6] 0.7 0.02 0.00 4000000 sdf_vector_sub [6]
-----------------------------------------------
0.01 0.00 1000000/1000000 get_min_distance [2]
[7] 0.4 0.01 0.00 1000000 sdf_vector_normalize [7]
0.00 0.00 1000000/21000000 sdf_vector_length [8]
-----------------------------------------------
0.00 0.00 1000000/21000000 sdf_vector_normalize [7]
0.01 0.00 20000000/21000000 get_min_distance [2]
[8] 0.3 0.01 0.00 21000000 sdf_vector_length [8]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [315]
[310] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [310]
0.00 0.00 1/1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
0.00 0.00 1/1 _GLOBAL__sub_I_main [310]
[311] 0.0 0.00 0.00 1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
This table describes the call tree of the program, and was sorted by
the total amount of time spent in each function and its children.
Each entry in this table consists of several lines. The line with the
index number at the left hand margin lists the current function.
The lines above it list the functions that called this function,
and the lines below it list the functions this one called.
This line lists:
index A unique number given to each element of the table.
Index numbers are sorted numerically.
The index number is printed next to every function name so
it is easier to look up where the function is in the table.
% time This is the percentage of the `total' time that was spent
in this function and its children. Note that due to
different viewpoints, functions excluded by options, etc,
these numbers will NOT add up to 100%.
self This is the total amount of time spent in this function.
children This is the total amount of time propagated into this
function by its children.
called This is the number of times the function was called.
If the function called itself recursively, the number
only includes non-recursive calls, and is followed by
a `+' and the number of recursive calls.
name The name of the current function. The index number is
printed after it. If the function is a member of a
cycle, the cycle number is printed between the
function's name and the index number.
For the function's parents, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the function into this parent.
children This is the amount of time that was propagated from
the function's children into this parent.
called This is the number of times this parent called the
function `/' the total number of times the function
was called. Recursive calls to the function are not
included in the number after the `/'.
name This is the name of the parent. The parent's index
number is printed after it. If the parent is a
member of a cycle, the cycle number is printed between
the name and the index number.
If the parents of the function cannot be determined, the word
`<spontaneous>' is printed in the `name' field, and all the other
fields are blank.
For the function's children, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the child into the function.
children This is the amount of time that was propagated from the
child's children to the function.
called This is the number of times the function called
this child `/' the total number of times the child
was called. Recursive calls by the child are not
listed in the number after the `/'.
name This is the name of the child. The child's index
number is printed after it. If the child is a
member of a cycle, the cycle number is printed
between the name and the index number.
If there are any cycles (circles) in the call graph, there is an
entry for the cycle-as-a-whole. This entry shows who called the
cycle (as parents) and the members of the cycle (as children.)
The `+' recursive calls entry shows the number of function calls that
were internal to the cycle, and the calls entry for each member shows,
for that member, how many times it was called from other members of
the cycle.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Index by function name
[310] _GLOBAL__sub_I_main (main.cpp) [4] sdf_vector_add [3] sdf_vector_scale
[311] __static_initialization_and_destruction_0(int, int) (main.cpp) [5]
sdf_vector_dot [6] sdf_vector_sub
[2] get_min_distance [8] sdf_vector_length
[1] main [7] sdf_vector_normalize
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ns/call ns/call name
27.59 0.08 0.08 8000002 10.00 10.00 sdf_vector_scale
20.69 0.14 0.06 6000001 10.00 10.00 sdf_vector_sub
17.24 0.19 0.05 1000000 50.01 270.03 get_min_distance
10.35 0.22 0.03 7000000 4.29 4.29 sdf_vector_dot
6.90 0.24 0.02 1000000 20.00 20.00 solve_cubic_equation
6.90 0.26 0.02 main
3.45 0.27 0.01 8000002 1.25 1.25 sdf_vector_add
3.45 0.28 0.01 4000001 2.50 2.50 sdf_vector_length
3.45 0.29 0.01 1000000 10.00 12.50 sdf_vector_normalize
0.00 0.29 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
0.00 0.29 0.00 1 0.00 0.00
__static_initialization_and_destruction_0(int, int)
% the percentage of the total running time of the
time program used by this function.
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Call graph (explanation follows)
granularity: each sample hit covers 2 byte(s) for 3.45% of 0.29 seconds
index % time self children called name
<spontaneous>
[1] 100.0 0.02 0.27 main [1]
0.05 0.22 1000000/1000000 get_min_distance [2]
-----------------------------------------------
0.05 0.22 1000000/1000000 main [1]
[2] 93.1 0.05 0.22 1000000 get_min_distance [2]
0.08 0.00 8000002/8000002 sdf_vector_scale [3]
0.06 0.00 6000001/6000001 sdf_vector_sub [4]
0.03 0.00 7000000/7000000 sdf_vector_dot [5]
0.02 0.00 1000000/1000000 solve_cubic_equation [6]
0.01 0.00 1000000/1000000 sdf_vector_normalize [7]
0.01 0.00 8000002/8000002 sdf_vector_add [8]
0.01 0.00 3000001/4000001 sdf_vector_length [9]
-----------------------------------------------
0.08 0.00 8000002/8000002 get_min_distance [2]
[3] 27.6 0.08 0.00 8000002 sdf_vector_scale [3]
-----------------------------------------------
0.06 0.00 6000001/6000001 get_min_distance [2]
[4] 20.7 0.06 0.00 6000001 sdf_vector_sub [4]
-----------------------------------------------
0.03 0.00 7000000/7000000 get_min_distance [2]
[5] 10.3 0.03 0.00 7000000 sdf_vector_dot [5]
-----------------------------------------------
0.02 0.00 1000000/1000000 get_min_distance [2]
[6] 6.9 0.02 0.00 1000000 solve_cubic_equation [6]
-----------------------------------------------
0.01 0.00 1000000/1000000 get_min_distance [2]
[7] 4.3 0.01 0.00 1000000 sdf_vector_normalize [7]
0.00 0.00 1000000/4000001 sdf_vector_length [9]
-----------------------------------------------
0.01 0.00 8000002/8000002 get_min_distance [2]
[8] 3.4 0.01 0.00 8000002 sdf_vector_add [8]
-----------------------------------------------
0.00 0.00 1000000/4000001 sdf_vector_normalize [7]
0.01 0.00 3000001/4000001 get_min_distance [2]
[9] 3.4 0.01 0.00 4000001 sdf_vector_length [9]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [315]
[310] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [310]
0.00 0.00 1/1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
0.00 0.00 1/1 _GLOBAL__sub_I_main [310]
[311] 0.0 0.00 0.00 1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
This table describes the call tree of the program, and was sorted by
the total amount of time spent in each function and its children.
Each entry in this table consists of several lines. The line with the
index number at the left hand margin lists the current function.
The lines above it list the functions that called this function,
and the lines below it list the functions this one called.
This line lists:
index A unique number given to each element of the table.
Index numbers are sorted numerically.
The index number is printed next to every function name so
it is easier to look up where the function is in the table.
% time This is the percentage of the `total' time that was spent
in this function and its children. Note that due to
different viewpoints, functions excluded by options, etc,
these numbers will NOT add up to 100%.
self This is the total amount of time spent in this function.
children This is the total amount of time propagated into this
function by its children.
called This is the number of times the function was called.
If the function called itself recursively, the number
only includes non-recursive calls, and is followed by
a `+' and the number of recursive calls.
name The name of the current function. The index number is
printed after it. If the function is a member of a
cycle, the cycle number is printed between the
function's name and the index number.
For the function's parents, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the function into this parent.
children This is the amount of time that was propagated from
the function's children into this parent.
called This is the number of times this parent called the
function `/' the total number of times the function
was called. Recursive calls to the function are not
included in the number after the `/'.
name This is the name of the parent. The parent's index
number is printed after it. If the parent is a
member of a cycle, the cycle number is printed between
the name and the index number.
If the parents of the function cannot be determined, the word
`<spontaneous>' is printed in the `name' field, and all the other
fields are blank.
For the function's children, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the child into the function.
children This is the amount of time that was propagated from the
child's children to the function.
called This is the number of times the function called
this child `/' the total number of times the child
was called. Recursive calls by the child are not
listed in the number after the `/'.
name This is the name of the child. The child's index
number is printed after it. If the child is a
member of a cycle, the cycle number is printed
between the name and the index number.
If there are any cycles (circles) in the call graph, there is an
entry for the cycle-as-a-whole. This entry shows who called the
cycle (as parents) and the members of the cycle (as children.)
The `+' recursive calls entry shows the number of function calls that
were internal to the cycle, and the calls entry for each member shows,
for that member, how many times it was called from other members of
the cycle.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Index by function name
[310] _GLOBAL__sub_I_main (main.cpp) [8] sdf_vector_add [3] sdf_vector_scale
[311] __static_initialization_and_destruction_0(int, int) (main.cpp) [5]
sdf_vector_dot [4] sdf_vector_sub
[2] get_min_distance [9] sdf_vector_length [6]
solve_cubic_equation
[1] main [7] sdf_vector_normalize
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ns/call ns/call name
28.58 0.02 0.02 main
14.29 0.03 0.01 2000000 5.00 5.00 sdf_vector_sub
14.29 0.04 0.01 1000000 10.00 50.01 get_min_distance
14.29 0.05 0.01 1000000 10.00 10.00 sdf_vector_dot
14.29 0.06 0.01 1000000 10.00 10.00 sdf_vector_equal
14.29 0.07 0.01 1000000 10.00 10.00 sdf_vector_scale
0.00 0.07 0.00 1000000 0.00 0.00 clamp
0.00 0.07 0.00 1000000 0.00 0.00 sdf_vector_add
0.00 0.07 0.00 1000000 0.00 0.00 sdf_vector_length
0.00 0.07 0.00 1000000 0.00 0.00 sdf_vector_normalize
0.00 0.07 0.00 1000000 0.00 0.00 sdf_vector_squared_length
0.00 0.07 0.00 1 0.00 0.00 _GLOBAL__sub_I_main
0.00 0.07 0.00 1 0.00 0.00
__static_initialization_and_destruction_0(int, int)
% the percentage of the total running time of the
time program used by this function.
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Call graph (explanation follows)
granularity: each sample hit covers 2 byte(s) for 14.28% of 0.07 seconds
index % time self children called name
<spontaneous>
[1] 100.0 0.02 0.05 main [1]
0.01 0.04 1000000/1000000 get_min_distance [2]
-----------------------------------------------
0.01 0.04 1000000/1000000 main [1]
[2] 71.4 0.01 0.04 1000000 get_min_distance [2]
0.01 0.00 2000000/2000000 sdf_vector_sub [3]
0.01 0.00 1000000/1000000 sdf_vector_equal [5]
0.01 0.00 1000000/1000000 sdf_vector_dot [4]
0.01 0.00 1000000/1000000 sdf_vector_scale [6]
0.00 0.00 1000000/1000000 sdf_vector_squared_length [11]
0.00 0.00 1000000/1000000 clamp [7]
0.00 0.00 1000000/1000000 sdf_vector_add [8]
0.00 0.00 1000000/1000000 sdf_vector_normalize [10]
-----------------------------------------------
0.01 0.00 2000000/2000000 get_min_distance [2]
[3] 14.3 0.01 0.00 2000000 sdf_vector_sub [3]
-----------------------------------------------
0.01 0.00 1000000/1000000 get_min_distance [2]
[4] 14.3 0.01 0.00 1000000 sdf_vector_dot [4]
-----------------------------------------------
0.01 0.00 1000000/1000000 get_min_distance [2]
[5] 14.3 0.01 0.00 1000000 sdf_vector_equal [5]
-----------------------------------------------
0.01 0.00 1000000/1000000 get_min_distance [2]
[6] 14.3 0.01 0.00 1000000 sdf_vector_scale [6]
-----------------------------------------------
0.00 0.00 1000000/1000000 get_min_distance [2]
[7] 0.0 0.00 0.00 1000000 clamp [7]
-----------------------------------------------
0.00 0.00 1000000/1000000 get_min_distance [2]
[8] 0.0 0.00 0.00 1000000 sdf_vector_add [8]
-----------------------------------------------
0.00 0.00 1000000/1000000 sdf_vector_normalize [10]
[9] 0.0 0.00 0.00 1000000 sdf_vector_length [9]
-----------------------------------------------
0.00 0.00 1000000/1000000 get_min_distance [2]
[10] 0.0 0.00 0.00 1000000 sdf_vector_normalize [10]
0.00 0.00 1000000/1000000 sdf_vector_length [9]
-----------------------------------------------
0.00 0.00 1000000/1000000 get_min_distance [2]
[11] 0.0 0.00 0.00 1000000 sdf_vector_squared_length [11]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [315]
[310] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [310]
0.00 0.00 1/1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
0.00 0.00 1/1 _GLOBAL__sub_I_main [310]
[311] 0.0 0.00 0.00 1
__static_initialization_and_destruction_0(int, int) [311]
-----------------------------------------------
This table describes the call tree of the program, and was sorted by
the total amount of time spent in each function and its children.
Each entry in this table consists of several lines. The line with the
index number at the left hand margin lists the current function.
The lines above it list the functions that called this function,
and the lines below it list the functions this one called.
This line lists:
index A unique number given to each element of the table.
Index numbers are sorted numerically.
The index number is printed next to every function name so
it is easier to look up where the function is in the table.
% time This is the percentage of the `total' time that was spent
in this function and its children. Note that due to
different viewpoints, functions excluded by options, etc,
these numbers will NOT add up to 100%.
self This is the total amount of time spent in this function.
children This is the total amount of time propagated into this
function by its children.
called This is the number of times the function was called.
If the function called itself recursively, the number
only includes non-recursive calls, and is followed by
a `+' and the number of recursive calls.
name The name of the current function. The index number is
printed after it. If the function is a member of a
cycle, the cycle number is printed between the
function's name and the index number.
For the function's parents, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the function into this parent.
children This is the amount of time that was propagated from
the function's children into this parent.
called This is the number of times this parent called the
function `/' the total number of times the function
was called. Recursive calls to the function are not
included in the number after the `/'.
name This is the name of the parent. The parent's index
number is printed after it. If the parent is a
member of a cycle, the cycle number is printed between
the name and the index number.
If the parents of the function cannot be determined, the word
`<spontaneous>' is printed in the `name' field, and all the other
fields are blank.
For the function's children, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the child into the function.
children This is the amount of time that was propagated from the
child's children to the function.
called This is the number of times the function called
this child `/' the total number of times the child
was called. Recursive calls by the child are not
listed in the number after the `/'.
name This is the name of the child. The child's index
number is printed after it. If the child is a
member of a cycle, the cycle number is printed
between the name and the index number.
If there are any cycles (circles) in the call graph, there is an
entry for the cycle-as-a-whole. This entry shows who called the
cycle (as parents) and the members of the cycle (as children.)
The `+' recursive calls entry shows the number of function calls that
were internal to the cycle, and the calls entry for each member shows,
for that member, how many times it was called from other members of
the cycle.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Index by function name
[310] _GLOBAL__sub_I_main (main.cpp) [8] sdf_vector_add [6] sdf_vector_scale
[311] __static_initialization_and_destruction_0(int, int) (main.cpp) [4]
sdf_vector_dot [11] sdf_vector_squared_length
[7] clamp [5] sdf_vector_equal [3] sdf_vector_sub
[2] get_min_distance [9] sdf_vector_length
[1] main [10] sdf_vector_normalize