Changes

Jump to: navigation, search

Algo holics

1,063 bytes removed, 04:45, 22 February 2019
Assignment 1
-b directs the profiler to omit detailed explanations of the column headings from the output.
'''The call graph for the above execution looks like:'''
Call graph
granularity: each sample hit covers 2 byte(s) no time propagated
 
index % time self children called name
0.00 0.00 4539/4539 placeNum(int, int) [10]
[19] 0.0 0.00 0.00 1 __static_initialization_and_destruction_0(int, int) [19]
-----------------------------------------------
 
Index by function name
 
[14] _GLOBAL__sub_I_sudoku [16] solveSudoku() [13] print(int (*) [9])
[15] _GLOBAL__sub_I_temp [17] storePositions() [12] goBack(int&, int&)
The Flat profile for the following looks like:
 
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
47.61 13.27 13.27 622577597 0.00 0.00 checkRow(int, int)
19.27 18.63 5.37 223365661 0.00 0.00 checkColumn(int, int)
14.41 22.65 4.01 157353814 0.00 0.00 placeNum(int, int)
12.09 26.01 3.37 100608583 0.00 0.00 checkSquare(int, int, int)
3.53 27.00 0.98 69175252 0.00 0.00 goBack(int&, int&)
3.02 27.84 0.84 1 0.84 27.84 solveSudoku()
0.04 27.85 0.01 1 0.01 0.01 _GLOBAL__sub_I_sudoku
0.04 27.86 0.01 1 0.01 0.01 storePositions()
0.00 27.86 0.00 2 0.00 0.00 print(int (*) [9])
0.00 27.86 0.00 1 0.00 0.00 _GLOBAL__sub_I_temp
0.00 27.86 0.00 1 0.00 0.00 __static_initialization_and_destruction_0(int, int)
0.00 27.86 0.00 1 0.00 0.00 __static_initialization_and_destruction_0(int, int)
 
85
edits

Navigation menu