Commit Graph

29 Commits

Author SHA1 Message Date
Victor Stinner 2f7a3f3957 PEP 454: copy missing part of the doc 2013-10-23 20:12:42 +02:00
Victor Stinner f218dd187d PEP 454
* add GroupedStats.traceback_limit attribute
* add a Statistic class
* add GroupedStats.statistics() method
* Grouped.compare_to() first parameter is now mandatory, the list is now sorted
  by default, add a new optional sort parameter
* "-X tracemalloc=NFRAME" command line option and PYTHONTRACEMALLOC=NFRAME
  environment variable now specify the number of frames. "-X tracemalloc" is
  still accepted (NFRAME=1)
* rename clear_traces() to reset()
* rename Snapshot.top_by(group_by) to Snapshot.group_by(key_type);
  rename GroupedStats.group_by to GroupedStats.key_type
* get_tracemalloc_memory() only returns a int (total size),
  instead of a (size: int, free: int) tuple
* mention id() builtin function
* rename get_object_trace() to get_object_traceback(), the function now
  only returns the traceback (no more the size)
* rename add_include_filter() to add_inclusive_filter(),
  and add_exclude_filter() to add_exclusive_filter()
* remove the StatsDiff class
* Remove match*() methods from the Filter class
* remove metrics

More details on filename pattern, traces, etc.
2013-10-23 20:03:33 +02:00
Victor Stinner 9857747bc9 PEP 454: the traceback idea comes from the faulthandler module 2013-10-22 17:04:24 +02:00
Victor Stinner 834123996b PEP 454: rationale 2013-10-22 13:57:53 +02:00
Victor Stinner 710a1c0720 PEP 454: Prior Work 2013-10-22 02:30:12 +02:00
Victor Stinner a4dc87cc11 PEP 454: remove DisplayTop and TakeSnapshot classes, and tasks and metric
functions

Metric.format does not no list available formats, the format is now undefined
(each tool can use its own format).
2013-10-18 13:54:17 +02:00
Victor Stinner 9be59399c7 PEP 454: remove tracemalloc.get_allocated_blocks()
sys.getallocatedblocks() already exists
2013-10-08 22:00:38 +02:00
gbrandl 3f90114628 PEP 454: add missing footer, formatting and typo fixes. 2013-10-08 15:54:15 +02:00
Victor Stinner 2492efe21e PEP 454: cleanup 2013-10-03 17:47:02 +02:00
Victor Stinner db71db8e68 PEP 454: tracemalloc is not ignored by default 2013-10-03 16:49:21 +02:00
Victor Stinner 6317f57fea PEP 454: reformat
* limit of 72 columns
* add () to functions and methods
2013-10-03 16:45:04 +02:00
Victor Stinner 983af6289d PEP 454: update the API to its implementation
* remove Frame, Trace and TraceStats classes
* add Metric class
* replace start_timer()/stop_timer() with a new Task class
* Task can now be scheduled using a threshold on the size of the traced memory,
  and only called repeat times
* add DisplayTop.display() method
* a lot of other (minor) changes
2013-10-03 16:00:07 +02:00
Victor Stinner 0cb64f9c69 PEP 454: second round based on the tracemalloc repository at changeset 21f7c3df0f15 2013-09-17 01:38:43 +02:00
Victor Stinner 2b83b4a265 Backed out changeset a44f3d00895d 2013-09-17 01:38:27 +02:00
Victor Stinner f5dbc76dd3 PEP 454: second round based on the tracemalloc repository at changeset 21f7c3df0f15 2013-09-17 01:37:36 +02:00
Victor Stinner 514324987d PEP 454: rename filter() to add_filter(); update the PEP to the last implementation 2013-09-08 15:58:01 +02:00
Victor Stinner b1d112a783 PEP 454: add clear_filters(), filter() and get_filters() functions 2013-09-08 15:15:26 +02:00
Victor Stinner 3d5f0c8eb7 PEP 454: add link to faulthandler doc 2013-09-05 23:29:40 +02:00
Victor Stinner 9d51af2d8a PEP 454: tracemalloc has been written for CPython 2013-09-05 23:26:55 +02:00
Victor Stinner a423604955 PEP 454: API inspired by the faulthandler module 2013-09-05 23:23:35 +02:00
Victor Stinner 2a8d38e264 PEP 454: add get/set_number_frame() 2013-09-05 23:15:45 +02:00
Victor Stinner 960ec4e01e PEP 454: add link to the project on PyPI 2013-09-04 14:01:56 +02:00
Victor Stinner 4ab328f1f2 PEP 454: add frame class
Other changes:

* add the type and default value of almost all attributes
* move the "Command line options" section to the end
2013-09-04 13:19:17 +02:00
Victor Stinner a80266cdc2 PEP 454: uh ho, fix many typos in the Rationale 2013-09-04 02:02:50 +02:00
Victor Stinner bb7b188f66 PEP 454 2013-09-04 01:19:30 +02:00
Victor Stinner d0f4b45bdc PEP 454 2013-09-03 13:18:48 +02:00
Victor Stinner 618fedf642 EP 454: reformat 2013-09-03 00:53:13 +02:00
Victor Stinner ae45d8d917 PEP 454: add Snapshot.load() method 2013-09-03 00:41:20 +02:00
Victor Stinner 5a68a9d15d PEP 454: Add a new tracemalloc module to trace Python memory allocations 2013-09-03 00:35:54 +02:00