Skip to content

Instantly share code, notes, and snippets.

@portnov
Created January 19, 2018 16:30
Show Gist options
  • Save portnov/7623268081bfa18a7273e9d99d851c97 to your computer and use it in GitHub Desktop.
Save portnov/7623268081bfa18a7273e9d99d851c97 to your computer and use it in GitHub Desktop.
Profiling results 1
2018-01-19 21:18:28,961 [INFO] sverchok.utils.profile: Profiling results:
3462203 function calls (3462197 primitive calls) in 3.633 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
1 2.395 2.395 2.927 2.927 edges_intersect_mk2.py:199(intersect_edges_2d)
2876400 0.524 0.000 0.524 0.000 {built-in method mathutils.geometry.intersect_line_line_2d}
1 0.191 0.191 0.380 0.380 contour2D.py:180(sort_verts_by_connexions)
7100 0.183 0.000 0.183 0.000 {method 'index' of 'list' objects}
2400 0.161 0.000 0.280 0.000 contour2D.py:49(check_dist_to_verts)
240000 0.101 0.000 0.117 0.000 geom_utils.py:31(length_v2)
240000 0.016 0.000 0.016 0.000 {built-in method math.sqrt}
100 0.006 0.000 0.011 0.000 contour2D.py:383(create_valid_vert_edges)
7200 0.005 0.000 0.005 0.000 {method 'pop' of 'list' objects}
5 0.004 0.001 0.004 0.001 {built-in method numpy.core.multiarray.array}
36370 0.004 0.000 0.004 0.000 {method 'append' of 'list' objects}
1 0.004 0.004 0.006 0.006 sv_bmesh_utils.py:22(bmesh_from_pydata)
1 0.003 0.003 0.004 0.004 edges_intersect_mk2.py:188(edges_from_ed_inter)
1 0.003 0.003 0.285 0.285 contour2D.py:122(mask_by_distance)
2400 0.003 0.000 0.003 0.000 contour2D.py:364(on_valid_angle_inter)
1 0.003 0.003 0.003 0.003 contour2D.py:271(cross_indices)
4800 0.002 0.000 0.002 0.000 contour2D.py:352(normal_angle)
1 0.002 0.002 3.633 3.633 contour2D.py:634(generate_outlines)
2400 0.001 0.000 0.001 0.000 contour2D.py:78(check_dist_to_edges)
7200 0.001 0.000 0.001 0.000 sv_bmesh_utils.py:46(<genexpr>)
2500 0.001 0.000 0.001 0.000 {built-in method builtins.sorted}
100 0.001 0.000 0.015 0.000 contour2D.py:507(make_verts)
1 0.001 0.001 0.008 0.008 contour2D.py:287(ciruclar_intersections)
100 0.001 0.000 0.002 0.000 contour2D.py:549(<listcomp>)
1 0.001 0.001 0.003 0.003 contour2D.py:167(calculate_mid_points)
10529 0.001 0.000 0.001 0.000 {built-in method builtins.len}
1 0.001 0.001 0.002 0.002 edges_intersect_mk2.py:244(<listcomp>)
7200 0.001 0.000 0.001 0.000 {built-in method math.cos}
1 0.001 0.001 0.010 0.010 edges_intersect_mk2.py:240(remove_doubles_from_edgenet)
100 0.001 0.000 0.002 0.000 sv_mesh_utils.py:32(<listcomp>)
1 0.001 0.001 0.001 0.001 edges_intersect_mk2.py:202(<listcomp>)
2400 0.001 0.000 0.001 0.000 {method 'new' of 'BMEdgeSeq' objects}
2400 0.001 0.000 0.001 0.000 {built-in method math.atan2}
2 0.001 0.000 0.001 0.000 {method 'reduce' of 'numpy.ufunc' objects}
1 0.001 0.001 0.001 0.001 edges_intersect_mk2.py:201(<listcomp>)
1 0.001 0.001 0.001 0.001 edges_intersect_mk2.py:243(<listcomp>)
2500 0.001 0.000 0.001 0.000 contour2D.py:553(<genexpr>)
2400 0.000 0.000 0.000 0.000 {method 'new' of 'BMVertSeq' objects}
2400 0.000 0.000 0.000 0.000 {built-in method math.sin}
7 0.000 0.000 0.000 0.000 {method 'tolist' of 'numpy.ndarray' objects}
2400 0.000 0.000 0.000 0.000 {method 'to_tuple' of 'Vector' objects}
1 0.000 0.000 0.001 0.001 viewer_mk2.py:343(process)
1 0.000 0.000 0.016 0.016 contour2D.py:648(<listcomp>)
1 0.000 0.000 3.634 3.634 contour2D.py:679(<listcomp>)
1 0.000 0.000 0.000 0.000 contour2D.py:237(orientation_angle)
1 0.000 0.000 0.000 0.000 contour2D.py:177(<listcomp>)
1 0.000 0.000 0.002 0.002 sv_mesh_utils.py:19(mesh_join)
1 0.000 0.000 0.000 0.000 edges_intersect_mk2.py:205(<listcomp>)
3 0.000 0.000 0.000 0.000 data_structure.py:88(match_long_repeat)
1 0.000 0.000 0.000 0.000 contour2D.py:187(<listcomp>)
1 0.000 0.000 0.000 0.000 contour2D.py:186(<listcomp>)
202 0.000 0.000 0.000 0.000 data_structure.py:73(repeat_last)
1 0.000 0.000 0.000 0.000 contour2D.py:185(<listcomp>)
1 0.000 0.000 0.008 0.008 contour2D.py:489(build_net)
1 0.000 0.000 0.000 0.000 {built-in method bmesh.new}
1 0.000 0.000 0.000 0.000 linalg.py:1976(norm)
302 0.000 0.000 0.000 0.000 {method 'extend' of 'list' objects}
1 0.000 0.000 0.000 0.000 contour2D.py:630(<listcomp>)
5 0.000 0.000 0.000 0.000 node_tree.py:100(socket_id)
1 0.000 0.000 0.000 0.000 contour2D.py:583(get_inputs)
8 0.000 0.000 0.000 0.000 bpy_types.py:844(links)
1 0.000 0.000 3.635 3.635 update_system.py:307(do_update_general)
8 0.000 0.000 0.000 0.000 data_structure.py:633(get_other_socket)
4 0.000 0.000 0.000 0.000 node_tree.py:407(sv_get)
2 0.000 0.000 0.000 0.000 viewer_draw_mk2.py:123(tag_redraw_all_view3d)
16 0.000 0.000 0.000 0.000 bpy_types.py:847(<genexpr>)
1 0.000 0.000 3.634 3.634 contour2D.py:670(process)
2 0.000 0.000 0.000 0.000 node_tree.py:285(sv_get)
1 0.000 0.000 0.000 0.000 {method 'index_update' of 'BMVertSeq' objects}
1 0.000 0.000 0.000 0.000 {method 'index_update' of 'BMEdgeSeq' objects}
3 0.000 0.000 0.000 0.000 socket_data.py:85(SvGetSocket)
1 0.000 0.000 0.009 0.009 contour2D.py:600(adjust_parameters)
1 0.000 0.000 0.000 0.000 viewer_mk2.py:388(get_options)
1 0.000 0.000 0.000 0.000 contour2D.py:130(<listcomp>)
5 0.000 0.000 0.000 0.000 node_tree.py:223(needs_data_conversion)
100 0.000 0.000 0.000 0.000 sv_mesh_utils.py:31(<listcomp>)
1 0.000 0.000 0.000 0.000 contour2D.py:614(get_perimeter_and_radius)
1 0.000 0.000 0.000 0.000 {method 'ensure_lookup_table' of 'BMVertSeq' objects}
1 0.000 0.000 0.288 0.288 contour2D.py:609(mask_edges_by_mid_points)
3 0.000 0.000 0.000 0.000 {built-in method builtins.abs}
1 0.000 0.000 0.000 0.000 contour2D.py:589(<listcomp>)
3 0.000 0.000 0.000 0.000 contour2D.py:344(list_matcher)
2 0.000 0.000 0.000 0.000 socket_data.py:70(SvSetSocket)
1 0.000 0.000 0.000 0.000 viewer_draw_mk2.py:156(callback_disable)
11 0.000 0.000 0.000 0.000 {built-in method builtins.max}
6/2 0.000 0.000 0.000 0.000 data_structure.py:234(levelsOflist)
8 0.000 0.000 0.000 0.000 node_tree.py:92(other)
1 0.000 0.000 0.000 0.000 {draw_handler_remove}
4 0.000 0.000 0.000 0.000 {built-in method builtins.getattr}
1 0.000 0.000 0.000 0.000 contour2D.py:649(<listcomp>)
1 0.000 0.000 0.000 0.000 contour2D.py:99(<listcomp>)
1 0.000 0.000 0.000 0.000 contour2D.py:592(<lambda>)
1 0.000 0.000 0.000 0.000 contour2D.py:650(<listcomp>)
2 0.000 0.000 0.000 0.000 {built-in method builtins.hasattr}
4/2 0.000 0.000 0.000 0.000 data_structure.py:221(dataStandart)
1 0.000 0.000 0.000 0.000 contour2D.py:98(sides_space_limits)
1 0.000 0.000 0.000 0.000 contour2D.py:592(<listcomp>)
6 0.000 0.000 0.000 0.000 {built-in method builtins.isinstance}
1 0.000 0.000 0.000 0.000 {method 'sum' of 'numpy.ndarray' objects}
1 0.000 0.000 0.000 0.000 viewer_draw_mk2.py:135(callback_enable)
2 0.000 0.000 0.000 0.000 node_tree.py:127(sv_set)
4 0.000 0.000 0.000 0.000 {built-in method time.perf_counter}
1 0.000 0.000 0.000 0.000 contour2D.py:175(mask_edges)
1 0.000 0.000 0.000 0.000 contour2D.py:605(<listcomp>)
1 0.000 0.000 0.000 0.000 numeric.py:406(asarray)
2 0.000 0.000 0.000 0.000 data_structure.py:184(dataCorrect)
3 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects}
3 0.000 0.000 0.000 0.000 node_tree.py:228(convert_data)
1 0.000 0.000 0.000 0.000 _methods.py:31(_sum)
5 0.000 0.000 0.000 0.000 {built-in method builtins.hash}
1 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects}
1 0.000 0.000 0.000 0.000 node_tree.py:581(node_id)
1 0.000 0.000 0.000 0.000 {draw_handler_add}
1 0.000 0.000 0.000 0.000 contour2D.py:640(<listcomp>)
1 0.000 0.000 0.000 0.000 data_structure.py:740(node_id)
1 0.000 0.000 0.000 0.000 contour2D.py:589(<lambda>)
1 0.000 0.000 0.000 0.000 {method 'conj' of 'numpy.ndarray' objects}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
2018-01-19 21:18:28,962 [INFO] sverchok.utils.profile: ---------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment