Open main menu

CDOT Wiki β

Changes

TeamDS

4,949 bytes added, 00:02, 5 April 2017
SDF Brute-Force Method
}
</syntaxhighlight>
 
 
===Analysis===
 
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ns/call ns/call name
61.38 3.37 3.37 BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int)
38.62 5.49 2.12 172032000 12.32 12.32 GetPixelOrBlack(SImageData const&, int, int)
0.00 5.49 0.00 126 0.00 0.00 Gaussian(float, float)
0.00 5.49 0.00 42 0.00 0.00 GaussianSimpsonIntegration(float, float, float)
0.00 5.49 0.00 12 0.00 0.00 void std::vector<float, std::allocator<float> >::_M_insert_aux<float const&>(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const&&&)
0.00 5.49 0.00 3 0.00 0.00 std::vector<unsigned char, std::allocator<unsigned char> >::_M_default_append(unsigned int)
0.00 5.49 0.00 2 0.00 0.00 GaussianKernelIntegrals(float, int)
0.00 5.49 0.00 1 0.00 0.00 _GLOBAL__sub_I__Z12WaitForEnterv
 
Call graph:
granularity: each sample hit covers 4 byte(s) for 0.18% of 5.49 seconds
index % time self children called name
<spontaneous>
[1] 100.0 3.37 2.12 BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int) [1]
2.12 0.00 172032000/172032000 GetPixelOrBlack(SImageData const&, int, int) [2]
0.00 0.00 2/2 GaussianKernelIntegrals(float, int) [11]
0.00 0.00 2/3 std::vector<unsigned char, std::allocator<unsigned char> >::_M_default_append(unsigned int) [10]
-----------------------------------------------
2.12 0.00 172032000/172032000 BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int) [1]
[2] 38.6 2.12 0.00 172032000 GetPixelOrBlack(SImageData const&, int, int) [2]
-----------------------------------------------
0.00 0.00 126/126 GaussianSimpsonIntegration(float, float, float) [8]
[7] 0.0 0.00 0.00 126 Gaussian(float, float) [7]
-----------------------------------------------
0.00 0.00 42/42 GaussianKernelIntegrals(float, int) [11]
[8] 0.0 0.00 0.00 42 GaussianSimpsonIntegration(float, float, float) [8]
0.00 0.00 126/126 Gaussian(float, float) [7]
-----------------------------------------------
0.00 0.00 12/12 GaussianKernelIntegrals(float, int) [11]
[9] 0.0 0.00 0.00 12 void std::vector<float, std::allocator<float> >::_M_insert_aux<float const&>(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const&&&) [9]
-----------------------------------------------
0.00 0.00 1/3 LoadImage(char const*, SImageData&) [15]
0.00 0.00 2/3 BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int) [1]
[10] 0.0 0.00 0.00 3 std::vector<unsigned char, std::allocator<unsigned char> >::_M_default_append(unsigned int) [10]
-----------------------------------------------
0.00 0.00 2/2 BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int) [1]
[11] 0.0 0.00 0.00 2 GaussianKernelIntegrals(float, int) [11]
0.00 0.00 42/42 GaussianSimpsonIntegration(float, float, float) [8]
0.00 0.00 12/12 void std::vector<float, std::allocator<float> >::_M_insert_aux<float const&>(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const&&&) [9]
-----------------------------------------------
0.00 0.00 1/1 __do_global_ctors_aux [18]
[12] 0.0 0.00 0.00 1 _GLOBAL__sub_I__Z12WaitForEnterv [12]
-----------------------------------------------
Index by function name
[12] _GLOBAL__sub_I__Z12WaitForEnterv (gaussian.cpp) [8] GaussianSimpsonIntegration(float, float, float) [9] void std::vector<float, std::allocator<float> >::_M_insert_aux<float const&>(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const&&&)
[2] GetPixelOrBlack(SImageData const&, int, int) [7] Gaussian(float, float) [10] std::vector<unsigned char, std::allocator<unsigned char> >::_M_default_append(unsigned int)
[11] GaussianKernelIntegrals(float, int) [1] BlurImage(SImageData const&, SImageData&, float, float, unsigned int, unsigned int)
=== Assignment 2 ===
=== Assignment 3 ===
116
edits