Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5394
| From | Thomas Güttler <guettliml@thomas-guettler.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Tool wie "top", das zeigt, was der Interpreter gerade macht |
| Date | 2019-01-09 09:13 +0100 |
| Message-ID | <mailman.162.1547021610.4816.python-de@python.org> (permalink) |
| References | <f114040b-8453-e479-e335-8f3545291f27@thomas-guettler.de> <e64925e7-3737-a9c5-3de1-95c8cb851708@arnoldarts.de> <mailman.154.1546972860.4816.python-de@python.org> <tracing-20190108234010@ram.dialup.fu-berlin.de> <eeeb0196-c0f1-4ba0-bd6f-9df0ed797da2@thomas-guettler.de> |
Am 08.01.19 um 23:41 schrieb Stefan Ram: > Arnold Krille <arnold@arnoldarts.de> writes: >> also die zwei Standardmethoden, die mir helfen wenn ich wissen will, was >> meine Skripte und Programme gerade ungefähr oder genau tun: >> - logging, gerne bei direkter Ausführung auf die stderr >> - Fortschrittsanzeigen > > Es gibt auch noch Tracing, etwa wie in: > > import sys, trace > tracer = trace.Trace\ > ( ignoredirs=[ sys.prefix, sys.exec_prefix ], trace=1, count=1 ) > tracer.run( 'main()' ) > r = tracer.results() > r.write_results( show_missing=True, summary=True ) > > . Mit »ignoredirs=[]« kann man damit wohl auch in die > Bibliotheken reinschauen. Das ist auch cool. Kann man das einem Befehl voranstellen so wie bei "nice" oder "strace"? Gruß, Thomas Güttler -- Thomas Guettler http://www.thomas-guettler.de/ I am looking for feedback: https://github.com/guettli/programming-guidelines
Back to de.comp.lang.python | Previous | Next — Previous in thread | Find similar
Re: [Python-de] Tool wie "top", das zeigt, was der Interpreter gerade macht Arnold Krille <arnold@arnoldarts.de> - 2019-01-08 19:40 +0100 Re: [Python-de] Tool wie "top", das zeigt, was der Interpreter gerade macht Thomas Güttler <guettliml@thomas-guettler.de> - 2019-01-09 09:13 +0100
csiph-web