Comments (9)
Some possible tools to throw into the discussion if time allows:
- https://github.com/fabianp/memory_profiler
- https://github.com/joerick/pyinstrument
- https://github.com/rkern/line_profiler
Would love a session on profiling mixed C/python code, though! I tend to do the simplest thing of building quick-and-dirty Cython wrappers in a notebook and using the %%time
cell magic. But there must be better tools out there that leverage C profiling tools. Might be a separate topic you could add if we don't get to it for this one, @drdavella?
from braindump.
Maybe this would be a good opportunity to talk about tools for C analysis and instrumentation like valgrind
and various sanitizers? And maybe gdb
?
from braindump.
I assume this would let me learn more about profilers? If so, you have my vote.
from braindump.
If you demo gdb
make sure you have https://github.com/gdbinit/Gdbinit installed.
Everyone will "oooo" and "ahhh".
from braindump.
@drdavella -- Using valgrind
with Python does not seem to be straightforward (see https://code.google.com/archive/p/distnumpy/wikis/valgrind.wiki). If you have any tips on this, let us know!
from braindump.
No, I don't have a lot of experience with that, just with pure C code. I wasn't sure whether Spec2Pipeline
was pure C or Python extension code. I could look into this kind of thing more though.
from braindump.
Spec2Pipeline is pure python.
from braindump.
Yikes!
from braindump.
Thought we did that.
from braindump.
Related Issues (20)
- Project boards?
- Celery (not the relatively useless vegetable) HOT 2
- Update the help
- Emacs org mode HOT 5
- tox HOT 1
- mmap (memory mapping)
- Glupyter feedback HOT 1
- Python asyncio HOT 2
- New data types from Google etc HOT 1
- Python typing HOT 2
- Python 3.8 walrus operator HOT 1
- Concurrent AWS Lambda calls with bert-etl
- Fun with Assembly
- How to make software citable
- JWQL demo/talk
- Netflix Polynote?
- Jenkins
- Just testing tasklist
- ASDF chunked array demo
- Configure VS code for Python
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 braindump.