What steps will reproduce the problem?
python import pympler.web, pympler.classtracker.ClassTracker tracker = pympler.classtracker.ClassTracker() tracker.start_periodic_snapshots(interval=1) pympler.web.start_in_background(tracker=tracker) Now browse to localhost:8090
What is the expected output? What do you see instead? The javascript graph does not appear because of a javascript error. The problem is cause by python's string formatting of large numbers in lists to have an 'L' after them -- which is not understood by javascript.
What version of the product are you using? On what operating system? python 2.7
Please provide any additional information below. This can be fixed with the following patch to tracker.tpl on line 71: - data: {{series}}, + data: {{str(series).replace('L', '')}},
- desired output.png 47.6KB
Comment #1
Posted on Feb 10, 2013 by Swift BirdHi Berhoyt,
I just committed a fix on GitHub: https://github.com/pympler/pympler/compare/fix_tracker
Does this also fix the problem?
Thanks for the bug report!
Comment #2
Posted on Feb 10, 2013 by Massive HippoYes, that also fixes the problem, thank you.
Comment #3
Posted on Feb 16, 2013 by Swift BirdFixed in Pympler 0.3.1
Status: Fixed
Labels:
Type-Defect
Priority-Medium