Opened 9 years ago

Last modified 9 years ago

#13361 closed enhancement

Report startuptime exclusive children — at Version 5

Reported by: vbraun Owned by: tbd
Priority: major Milestone: sage-5.4
Component: performance Keywords:
Cc: Merged in:
Authors: Volker Braun Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vbraun)

Right now sage -startuptime reports startup time including children. This isn't particularly useful since that just means that the first module (which loads most of sage as dependencies) is the slowest. The more meaningful number is exclusive children, which can tell us if the module does computations during initialization.

Change History (9)

Changed 9 years ago by vbraun

Initial patch

comment:1 Changed 9 years ago by vbraun

  • Description modified (diff)
  • Status changed from new to needs_review

comment:2 Changed 9 years ago by vbraun

  • Description modified (diff)

Changed 9 years ago by vbraun

Initial patch

comment:3 Changed 9 years ago by vbraun

  • Description modified (diff)

Now with disabled garbage collector (it did skew timings) and with optional argument a module that you want to know more about:

[vbraun@laptop sage]$ sage -startuptime sage.geometry.fan

========================================================================
== Slowest modules importing sage.geometry.fan =========================
exclude/ms include/ms   #parents  module name
     0.115     51.405          3  sage.geometry.all
     0.224      0.246          1  sage.schemes.toric.library
     0.332      0.398          1  sage.geometry.triangulation.fan_refinement
     0.383      0.471          2  sage.geometry.fan_morphism
     0.560      0.782          3  sage.schemes.toric.variety

== Slowest modules imported by sage.geometry.fan =======================
exclude/ms include/ms   #parents  module name
     0.533      2.509         19  collections
     0.607     67.336          5  sage.combinat.posets.posets
     0.631    140.774         51  sage.misc.all
     0.734     49.422          5  sage.geometry.cone
     0.772      2.777          4  sage.geometry.lattice_polytope
     1.121      1.124        175  sage.misc.abstract_method
     1.247      1.247        180  sage.misc.lazy_attribute
     1.304     65.086        230  sage.rings.all
     1.332      1.332         63  copy
     3.837      5.491        218  sage.misc.sageinspect

== module sage.geometry.fan ============================================
Time to import:  0.751ms
Cumulative time: 0.823ms
Names: fan, sage.geometry.fan
Last edited 9 years ago by vbraun (previous) (diff)

Changed 9 years ago by vbraun

Improved patch

comment:4 Changed 9 years ago by vbraun

New patch has better handling of ambiguous command line argument and prints module file.

Changed 9 years ago by vbraun

Initial patch

comment:5 Changed 9 years ago by vbraun

  • Description modified (diff)
Note: See TracTickets for help on using tickets.