Commit Graph

55 Commits

Author SHA1 Message Date
Serhiy Storchaka cc1c734886 Issue #26921: Fixed a/an articles. 2016-05-03 13:52:22 +03:00
Serhiy Storchaka 3dad438872 Issue #26916: Fixed words duplications. 2016-05-03 12:03:16 +03:00
Victor Stinner b1dab8935d PEP 454: Remove set_traceback_limit(); update the PEP to reflect the implementation 2013-11-25 11:53:03 +01:00
Barry Warsaw d787dbc4ac A few more PEP updates - likely more to come once beta 1 is spun. 2013-11-23 19:14:08 -05:00
Victor Stinner 312cd7d3ff PEP 454: Charles-François accepted the PEP 2013-11-21 22:55:10 +01:00
Victor Stinner 4f669af9ab PEP 454: rename Snapshot.apply_filters() to Snapshot.filter_traces() 2013-11-12 13:38:36 +01:00
Victor Stinner 596ee26d32 PEP 454: set_traceback_limit() requires nframe >= 1 2013-11-10 23:54:37 +01:00
Victor Stinner 9e3306d126 PEP 454: Statistic doesn't have size_dif/count_diff anymore 2013-11-09 19:50:51 +01:00
Victor Stinner 2a339ac8f5 PEP 454: merge two "functions" sections 2013-11-09 03:24:36 +01:00
Victor Stinner 20e6c78e68 PEP 454: remove filters on tracing
* Remove add_filter(), get_filters(), clear_filters()
* Remove the default filter on tracemalloc.py
* Give more explanation on the impacts of set_traceback_limit()
2013-11-09 03:13:58 +01:00
Victor Stinner c97d838774 PEP 454: remove Snapshot.timestamp attribute 2013-11-08 18:06:37 +01:00
Victor Stinner 4841d22de4 PEP 454
* Add Trace, Traceback and Frame classes: generated on-demand read-only views
  of traces
* Add a new StatisticDiff class and add new Snapshot.compare_to() method.
  The method return a list of StatisticDiff instances and replaces the
  compare_to parameter of Snapshot.statistics()
* Remove Statistic.size_diff and Statistic.count_diff attributes
* Remove get_traces()
2013-11-08 16:25:13 +01:00
Victor Stinner 3ba7d9323f PEP 454: replace Statistic.key with Statistic.traceback 2013-11-05 22:04:26 +01:00
Victor Stinner c4e4fa55cc PEP 454: cleanup 2013-11-04 08:50:35 +01:00
Victor Stinner 59accfc791 PEP 454: remove enable/disble/is_enabled() functions 2013-11-03 13:50:52 +01:00
Victor Stinner 05d6e0dfad PEP 454
* rename disable/enable/is_enabled() to stop/start/is_tracing()
* add disable/enable/is_enabled() which are temporary, and disable() doesn't
  clear traces
* a traceback now always contains a least 1 frame, use (('<unknown>', 0),) if
  the traceback cannot read or if the traceback limit is 0
* write more documentation on filter functions
2013-11-01 12:05:37 +01:00
Victor Stinner 0e4112070e PEP 454: add a section "Log calls to the memory allocator" 2013-10-31 02:24:25 +01:00
Victor Stinner b78d7821b3 PEP 454: cleanup 2013-10-31 01:23:31 +01:00
Victor Stinner 0a63f69b11 PEP 454
* Snapshot.apply_filters() now returns a new Snapshot instance
* Rename Filter.traceback to Filter.all_frames
2013-10-31 00:13:57 +01:00
Victor Stinner b134f468c8 PEP 454: rename reset() to clear_traces()
Explain also in clear_traces() documentation how to get traces before clearing them.
2013-10-30 11:24:34 +01:00
Victor Stinner adc68f3b3d PEP 454: group_by() is private again 2013-10-30 02:15:25 +01:00
Victor Stinner aa3b086113 PEP 454
* Remove GroupedStats class: replaced with a new Snapshot.statistics() method
* Filter: rename include attribute to inclusive
* Snapshot.group_by() now raises a ValueError when cumulative parameter is
  miused
2013-10-30 02:07:37 +01:00
Victor Stinner abfd6e8439 PEP 454: remove GroupedStats.timestamp/.traceback_limit attributes
various cleanup
2013-10-28 00:20:26 +01:00
Victor Stinner ae96a9de23 PEP 454: cleanup 2013-10-27 18:26:47 +01:00
Victor Stinner 98900f22d2 PEP 454
* replace Snapshot.create() class method with take_snapshot() function
* get_traces() now returns a list instead of a dict (remove addresses)
* remove get_stats()
* unknown frames are now stored as ("<unknown>", 0) instead of (None, None)
* remove get_object_address()
* remove get_trace()
* remove add_inclusive_filter() and add_exclusive_filter() functions
* remove "address" key type from Snapshot.group_by()
2013-10-27 17:22:57 +01:00
Victor Stinner e9eb066c0d PEP 454: mention also gdb-heap 2013-10-26 09:43:14 +02:00
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