Comments (1)
It looks like there's a bug here, it's caused by a profile that has zero duration. The simplest fix would be to add a special case to frame_proportion_of_total_time
to just return 1 if self.root_frame.time
is zero. If you have time to submit a PR, that would be appriciated!
from pyinstrument.
Related Issues (20)
- recursive functions HOT 3
- Memory consumption increases when profiling in an iteration HOT 1
- [bug] pyinstruments not working TypeError: 'NoneType' object is not callable HOT 1
- Example on how to disable profiling in FastAPI tests HOT 1
- RuntimeError: cannot release un-acquired lock w/ gevent
- Pyinstrument ProfilerState object is not callable HOT 1
- CSP Conflict with PyInstrument Inline Scripts HOT 1
- Using a lock inexplicably doesn't protect against multiple profilers HOT 1
- Larger HTML files not loading in any browser HOT 2
- Tests fail with python3.13b2 HOT 1
- IPython profile magic _sometime_ records extra time on the main thread. HOT 1
- Unable to build on 3.13 HOT 1
- Pyinstrument CLI hides script exit code HOT 1
- Feature Request: Render stack as collapsed in HTML HOT 3
- Support more options through IPython magic
- html js file render UnicodeDecodeError HOT 1
- "SystemError: <built-in function get_frame_info> returned a result with an exception set" when running with pytest HOT 9
- Pyinstrument doesn't capture context_changed event when started outside the ioloop HOT 5
- Importing `glom` on Python3.12 fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinstrument.