Opened 11 years ago

Last modified 11 years ago

#11287 closed enhancement

Interface to runsnake and import_statements — at Initial Version

Reported by: nthiery Owned by: tbd
Priority: major Milestone: sage-4.7.2
Component: performance Keywords: runsnake, prun, profiling, days30
Cc: sage-combinat, saliola, aschilling, novoselt Merged in:
Authors: Nicolas M. Thiéry Reviewers: Franco Saliola
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


This patch adds to developper tools in sage.misc.dev_tools:

  • An interface to the graphical profiler runsnake. See e.g. the attached image which shows a graphical profile of listing all the elements of SymmetricGroup?(3), and highlights the current GAP interface issue with select on certain linux kernels.
  • A function import_statements:
            sage: import_statements(WeylGroup, lazy_attribute)
            from sage.combinat.root_system.weyl_group import WeylGroup
            from sage.misc.lazy_attribute import lazy_attribute
            sage: import_statements(WeylGroup, lazy_attribute, lazy=True)
            from sage.misc.lazy_import import lazy_import
            lazy_import('sage.combinat.root_system.weyl_group', 'WeylGroup')
            lazy_import('sage.misc.lazy_attribute', 'lazy_attribute')

To achieve this, it also extracts a function get_main_globals out of inject_variables.

Change History (1)

Changed 11 years ago by nthiery

Screen shot of runsnake in action

Note: See TracTickets for help on using tickets.