Changes

Jump to: navigation, search

TriForce

13,345 bytes added, 10:48, 8 March 2019
Assignment 1: Julia Sets
This code is tested using the parameters
Range R(-1.5, 1.5) I(-1, 1)
Image height(1000) width(1500)
MAXCYCLES 1000
Julia values = .72 * e^(i*θ): θ[0, 2π] : 100 intervals
|
Width: 750 Height: 500
 
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
Width: 2250 Height: 1500
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
Width: 3000 Height: 2000
Flat profile:
 
Each sample counts as 0.01 seconds.
% cumulative self self total
|-
|
Call graph
 
 
granularity: each sample hit covers 2 byte(s) for 0.05% of 21.80 seconds
 
index % time self children called name
<spontaneous>
[1] 96.0 20.93 0.00 calcJulia(int*, int, int, float, float) [1]
-----------------------------------------------
<spontaneous>
[2] 4.0 0.14 0.73 createBMP(int*, int, int) [2]
0.33 0.40 49447183/49447183 lerp(float, Pix&, Pix&, Bitmap&) [3]
0.00 0.00 100/100 Bitmap::Bitmap(char const*, int, int) [15]
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
-----------------------------------------------
0.33 0.40 49447183/49447183 createBMP(int*, int, int) [2]
[3] 3.4 0.33 0.40 49447183 lerp(float, Pix&, Pix&, Bitmap&) [3]
0.40 0.00 37500000/37500000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
0.40 0.00 37500000/37500000 lerp(float, Pix&, Pix&, Bitmap&) [3]
[4] 1.8 0.40 0.00 37500000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
[12] 0.0 0.00 0.00 100 generateBitmapImage(unsigned char*, int, int, char const*) [12]
0.00 0.00 100/100 createBitmapFileHeader(int, int, int) [13]
0.00 0.00 100/100 createBitmapInfoHeader(int, int) [14]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [12]
[13] 0.0 0.00 0.00 100 createBitmapFileHeader(int, int, int) [13]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [12]
[14] 0.0 0.00 0.00 100 createBitmapInfoHeader(int, int) [14]
-----------------------------------------------
0.00 0.00 100/100 createBMP(int*, int, int) [2]
[15] 0.0 0.00 0.00 100 Bitmap::Bitmap(char const*, int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 createBMP(int*, int, int) [2]
[16] 0.0 0.00 0.00 100 Bitmap::~Bitmap() [16]
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [12]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [25]
[17] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [17]
-----------------------------------------------
^L
Index by function name
 
[17] _GLOBAL__sub_I_main (julia.cpp) [3] lerp(float, Pix&, Pix&, Bitmap&) [15] Bitmap::Bitmap(char const*, int, int)
[12] generateBitmapImage(unsigned char*, int, int, char const*) [1] calcJulia(int*, int, int, float, float) [16] Bitmap::~Bitmap()
[13] createBitmapFileHeader(int, int, int) [2] createBMP(int*, int, int)
[14] createBitmapInfoHeader(int, int) [4] Bitmap::addColor(int, int, int)
 
Call graph
 
 
granularity: each sample hit covers 2 byte(s) for 0.01% of 87.23 seconds
 
index % time self children called name
<spontaneous>
[1] 96.0 83.70 0.00 calcJulia(int*, int, int, float, float) [1]
-----------------------------------------------
<spontaneous>
[2] 4.0 0.37 3.16 createBMP(int*, int, int) [2]
1.39 1.76 197791886/197791886 lerp(float, Pix&, Pix&, Bitmap&) [3]
0.01 0.00 100/100 Bitmap::Bitmap(char const*, int, int) [5]
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
-----------------------------------------------
1.39 1.76 197791886/197791886 createBMP(int*, int, int) [2]
[3] 3.6 1.39 1.76 197791886 lerp(float, Pix&, Pix&, Bitmap&) [3]
1.76 0.00 150000000/150000000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
1.76 0.00 150000000/150000000 lerp(float, Pix&, Pix&, Bitmap&) [3]
[4] 2.0 1.76 0.00 150000000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
0.01 0.00 100/100 createBMP(int*, int, int) [2]
[5] 0.0 0.01 0.00 100 Bitmap::Bitmap(char const*, int, int) [5]
-----------------------------------------------
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
[13] 0.0 0.00 0.00 100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
0.00 0.00 100/100 createBitmapFileHeader(int, int, int) [14]
0.00 0.00 100/100 createBitmapInfoHeader(int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
[14] 0.0 0.00 0.00 100 createBitmapFileHeader(int, int, int) [14]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
[15] 0.0 0.00 0.00 100 createBitmapInfoHeader(int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 createBMP(int*, int, int) [2]
[16] 0.0 0.00 0.00 100 Bitmap::~Bitmap() [16]
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [25]
[17] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [17]
-----------------------------------------------
^L
Index by function name
 
[17] _GLOBAL__sub_I_main (julia.cpp) [3] lerp(float, Pix&, Pix&, Bitmap&) [5] Bitmap::Bitmap(char const*, int, int)
[13] generateBitmapImage(unsigned char*, int, int, char const*) [1] calcJulia(int*, int, int, float, float) [16] Bitmap::~Bitmap()
[14] createBitmapFileHeader(int, int, int) [2] createBMP(int*, int, int)
[15] createBitmapInfoHeader(int, int) [4] Bitmap::addColor(int, int, int)
 
Call graph
 
 
granularity: each sample hit covers 2 byte(s) for 0.01% of 196.08 seconds
 
index % time self children called name
<spontaneous>
[1] 96.0 188.22 0.00 calcJulia(int*, int, int, float, float) [1]
-----------------------------------------------
<spontaneous>
[2] 4.0 0.95 6.91 createBMP(int*, int, int) [2]
2.78 4.12 445028641/445028641 lerp(float, Pix&, Pix&, Bitmap&) [3]
0.00 0.01 100/100 Bitmap::~Bitmap() [6]
0.01 0.00 100/100 Bitmap::Bitmap(char const*, int, int) [7]
-----------------------------------------------
2.78 4.12 445028641/445028641 createBMP(int*, int, int) [2]
[3] 3.5 2.78 4.12 445028641 lerp(float, Pix&, Pix&, Bitmap&) [3]
4.12 0.00 337500000/337500000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
4.12 0.00 337500000/337500000 lerp(float, Pix&, Pix&, Bitmap&) [3]
[4] 2.1 4.12 0.00 337500000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
0.01 0.00 100/100 Bitmap::~Bitmap() [6]
[5] 0.0 0.01 0.00 100 generateBitmapImage(unsigned char*, int, int, char const*) [5]
0.00 0.00 100/100 createBitmapFileHeader(int, int, int) [15]
0.00 0.00 100/100 createBitmapInfoHeader(int, int) [16]
-----------------------------------------------
0.00 0.01 100/100 createBMP(int*, int, int) [2]
[6] 0.0 0.00 0.01 100 Bitmap::~Bitmap() [6]
0.01 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [5]
-----------------------------------------------
0.01 0.00 100/100 createBMP(int*, int, int) [2]
[7] 0.0 0.01 0.00 100 Bitmap::Bitmap(char const*, int, int) [7]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [5]
[15] 0.0 0.00 0.00 100 createBitmapFileHeader(int, int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [5]
[16] 0.0 0.00 0.00 100 createBitmapInfoHeader(int, int) [16]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [25]
[17] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [17]
-----------------------------------------------
^L
Index by function name
 
[17] _GLOBAL__sub_I_main (julia.cpp) [3] lerp(float, Pix&, Pix&, Bitmap&) [7] Bitmap::Bitmap(char const*, int, int)
[5] generateBitmapImage(unsigned char*, int, int, char const*) [1] calcJulia(int*, int, int, float, float) [6] Bitmap::~Bitmap()
[15] createBitmapFileHeader(int, int, int) [2] createBMP(int*, int, int)
[16] createBitmapInfoHeader(int, int) [4] Bitmap::addColor(int, int, int)
 
Call graph
 
 
granularity: each sample hit covers 2 byte(s) for 0.00% of 347.05 seconds
 
index % time self children called name
<spontaneous>
[1] 96.1 333.37 0.00 calcJulia(int*, int, int, float, float) [1]
-----------------------------------------------
<spontaneous>
[2] 3.9 1.21 12.47 createBMP(int*, int, int) [2]
5.74 6.73 791167185/791167185 lerp(float, Pix&, Pix&, Bitmap&) [3]
0.01 0.00 100/100 Bitmap::Bitmap(char const*, int, int) [5]
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
-----------------------------------------------
5.74 6.73 791167185/791167185 createBMP(int*, int, int) [2]
[3] 3.6 5.74 6.73 791167185 lerp(float, Pix&, Pix&, Bitmap&) [3]
6.73 0.00 600000000/600000000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
6.73 0.00 600000000/600000000 lerp(float, Pix&, Pix&, Bitmap&) [3]
[4] 1.9 6.73 0.00 600000000 Bitmap::addColor(int, int, int) [4]
-----------------------------------------------
0.01 0.00 100/100 createBMP(int*, int, int) [2]
[5] 0.0 0.01 0.00 100 Bitmap::Bitmap(char const*, int, int) [5]
-----------------------------------------------
0.00 0.00 100/100 Bitmap::~Bitmap() [16]
[13] 0.0 0.00 0.00 100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
0.00 0.00 100/100 createBitmapFileHeader(int, int, int) [14]
0.00 0.00 100/100 createBitmapInfoHeader(int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
[14] 0.0 0.00 0.00 100 createBitmapFileHeader(int, int, int) [14]
-----------------------------------------------
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
[15] 0.0 0.00 0.00 100 createBitmapInfoHeader(int, int) [15]
-----------------------------------------------
0.00 0.00 100/100 createBMP(int*, int, int) [2]
[16] 0.0 0.00 0.00 100 Bitmap::~Bitmap() [16]
0.00 0.00 100/100 generateBitmapImage(unsigned char*, int, int, char const*) [13]
-----------------------------------------------
0.00 0.00 1/1 __libc_csu_init [25]
[17] 0.0 0.00 0.00 1 _GLOBAL__sub_I_main [17]
-----------------------------------------------
 
Index by function name
 
[17] _GLOBAL__sub_I_main (julia.cpp) [3] lerp(float, Pix&, Pix&, Bitmap&) [5] Bitmap::Bitmap(char const*, int, int)
[13] generateBitmapImage(unsigned char*, int, int, char const*) [1] calcJulia(int*, int, int, float, float) [16] Bitmap::~Bitmap()
[14] createBitmapFileHeader(int, int, int) [2] createBMP(int*, int, int)
[15] createBitmapInfoHeader(int, int) [4] Bitmap::addColor(int, int, int)
 
 
 
 
|}
{| class="wikitable mw-collapsible mw-collapsed"

Navigation menu