Comments (9)
There's no limit in the depth of as far as I recall. What makes you think there is more data?
from tuna.
Gotcha. When I view it using snakeview or the builtin pstats module I see much more info than when I use tuna.
from tuna.
Okay, typical case of snakeviz showing incorrect information. Just look at the times and you'll see that something is amiss:
Nothing beyong exception.py:31
can be inferred from the profile, and tuna stops there. This is explained in the main readme as well.
from tuna.
tuna should perhaps make this more explicit. Looking into it.
from tuna.
Fixed by #71.
from tuna.
Yes, those confusing times (also visible elsewhere in the call tree) are part of what has me looking for other profiling/analysis tools.
Thanks for the quick fix.
One other suggestion/question... in this case the function call that I care about is backend/file_storage/views.py:80(post). All the confusing calls on top of that are Django middleware functions that are irrelevant (and from what you say, the data about them is ambiguous anyway). Is it possible to specify a different root function to tuna so that it only shows calls below that root?
from tuna.
Just click on it in the browser.
from tuna.
Well, at least with tuna v0.4.0, I don't see that function call in the browser, so I can't click on it.
I tried upgrading just now, both v0.4.1 and v0.4.2 seem to have some error that causes them not to load any additional JS/CSS files. I see this in the Python console:
$ tuna ~/Downloads/stats-14-14-29.log --port 8081
Starting httpd on port 8081
127.0.0.1 - - [24/Apr/2020 13:01:24] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [24/Apr/2020 13:01:24] "GET /static/tuna.css HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 59635)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 696, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/server.py", line 418, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/server.py", line 406, in handle_one_request
method()
File "/Users/evan/cs1-v2/venv/lib/python3.6/site-packages/tuna/main.py", line 229, in do_GET
mimetype, _ = mimetypes.guess_type(filepath)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/mimetypes.py", line 291, in guess_type
return _db.guess_type(url, strict)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/mimetypes.py", line 116, in guess_type
scheme, url = urllib.parse.splittype(url)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 938, in splittype
match = _typeprog.match(url)
TypeError: expected string or bytes-like object
----------------------------------------
127.0.0.1 - - [24/Apr/2020 13:01:24] "GET /static/bootstrap.min.css HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 59637)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 696, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/server.py", line 418, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/server.py", line 406, in handle_one_request
method()
File "/Users/evan/cs1-v2/venv/lib/python3.6/site-packages/tuna/main.py", line 229, in do_GET
mimetype, _ = mimetypes.guess_type(filepath)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/mimetypes.py", line 291, in guess_type
return _db.guess_type(url, strict)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/mimetypes.py", line 116, in guess_type
scheme, url = urllib.parse.splittype(url)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/parse.py", line 938, in splittype
match = _typeprog.match(url)
TypeError: expected string or bytes-like object
----------------------------------------
...
Could be user error on my end, but I'm not sure.
from tuna.
I cannot reproduce the error. Also, I don't get what you mean by "you don't see that function".
from tuna.
Related Issues (20)
- Broken Pipe HOT 10
- How to properly close tuna HOT 1
- pytest integration HOT 1
- Crash when the favicon does not exists HOT 3
- Dependency Dashboard
- assert mimetype is not None
- Add disclaimer: Tuna cannot deal with captured output of every type of terminal HOT 3
- Run failed on Mac OS Monterey M1 Chip HOT 1
- Tuna badly struggles on large files HOT 1
- Tuna relies on sklearn that is deprecated HOT 2
- Jupyter notebook shows blank HOT 2
- Missing apple-touch-icon-precomposed.png and apple-touch-icon.png
- Question: Using Window Title for foobar2000, any way I can send playback time and song duration to Tuna? HOT 2
- add python 3.11 and 3.12 support HOT 2
- favicon.ico missing error HOT 2
- Visualization in Tuna HOT 1
- tuna 0.4.5 ipython magic fails to load with "The tuna module is not an IPython extension" HOT 3
- total execution time is wrong (handling of imports) HOT 5
- crash when parsing profile HOT 2
- IPython magics broken in tuna >=5.0 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 tuna.