Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow gperftools.top to return a string #16778

Closed
sagetrac-mraum mannequin opened this issue Aug 7, 2014 · 8 comments
Closed

Allow gperftools.top to return a string #16778

sagetrac-mraum mannequin opened this issue Aug 7, 2014 · 8 comments

Comments

@sagetrac-mraum
Copy link
Mannequin

sagetrac-mraum mannequin commented Aug 7, 2014

The text report of gperftools is printed to stdout, but in order to access it in other methods (e.g., citations), we need the it to return the report as a string. This adds an optional parameter to the method top.

CC: @vbraun

Component: misc

Author: Martin Raum

Branch/Commit: u/mraum/ticket/16778 @ 94caae0

Issue created by migration from https://trac.sagemath.org/ticket/16778

@sagetrac-mraum sagetrac-mraum mannequin added this to the sage-6.3 milestone Aug 7, 2014
@sagetrac-mraum
Copy link
Mannequin Author

sagetrac-mraum mannequin commented Aug 7, 2014

Branch: u/mraum/ticket/16778

@sagetrac-mraum
Copy link
Mannequin Author

sagetrac-mraum mannequin commented Aug 7, 2014

Commit: 4fab9ea

@sagetrac-mraum
Copy link
Mannequin Author

sagetrac-mraum mannequin commented Aug 7, 2014

New commits:

eb9376ainitial version
34123bfconsistenly use lower-case names for normalized (according to the first nontrivial Fourier coefficient) forms
34c3567support to specify form spaces/rings by the parameter n instead of the parameter group, use the same name for the form space/ring classes as their representation name
ae4f782added __init__.py
5616d62Merge branch 'master' of git://git.sagemath.org/sage
4fab9eaPossibility to return top as string in gperftools.

@sagetrac-mraum sagetrac-mraum mannequin added the s: needs review label Aug 7, 2014
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

94caae0Possibility to return top as string in gperftools.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 7, 2014

Changed commit from 4fab9ea to 94caae0

@vbraun
Copy link
Member

vbraun commented Aug 7, 2014

comment:4

I'm against the last commit. You have a method to "Print text report" and you added an option to precisely not do that. WTF? Do you think that is a sane UI? If you want to save the output to a file there is already "save". If saving to a temporary file and loading said file is a common occurence then add an appropriately-named method, string() or stdout() or something like that.

@vbraun
Copy link
Member

vbraun commented Aug 7, 2014

comment:5

PS: Sorry for the strong language ;-)

PPS: "ppprofiler" has at least one p too many, no?

@sagetrac-mraum
Copy link
Mannequin Author

sagetrac-mraum mannequin commented Aug 8, 2014

comment:6

That's all right (I mean the language). As for the commit, I see what you mean. My focus is on citation management at #16777. So I would postpone work on profiling. Eventually an interface unifying cProfile and gperftools would be nice. But that's not for today, and requires more thorough thining.

Close as wontfix then?

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@vbraun vbraun closed this as completed Aug 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant