Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Functions | |
def | main (argv=None) |
def | parse_line (line) |
def | print_objects (objects, prefix="") |
def | process_file (options) |
Process a ref debug log This file will process a log file created by enabling the refdebug config option in asterisk.conf. See http://www.asterisk.org for more information about the Asterisk project. Please do not directly contact any of the maintainers of this project for assistance; the project provides a web site, mailing lists and IRC channels for your use. This program is free software, distributed under the terms of the GNU General Public License Version 2. See the LICENSE file at the top of the source tree. Copyright (C) 2014, Digium, Inc. Matt Jordan <mjordan@digium.com>
def main | ( | argv = None | ) |
Main entry point for the script
Definition at line 175 of file refcounter.py.
References len(), main(), print_objects(), and process_file().
Referenced by main().
def parse_line | ( | line | ) |
Parse out a line into its constituent parts. Keyword Arguments: line The line from a ref debug log to parse out Returns: A dictionary containing the options, or None
Definition at line 28 of file refcounter.py.
References len().
Referenced by process_file().
def print_objects | ( | objects, | |
prefix = "" |
|||
) |
Prints out the objects that were processed Keyword Arguments: objects A list of objects to print prefix A prefix to print that specifies something about this object
Definition at line 157 of file refcounter.py.
Referenced by main().
def process_file | ( | options | ) |
The routine that kicks off processing a ref file Keyword Arguments: filename The full path to the file to process Returns: A tuple containing: - A list of objects whose lifetimes were completed (i.e., finished objects) - A list of objects referenced after destruction (i.e., invalid objects) - A list of objects whose lifetimes were not completed (i.e., leaked objects) - A list of objects whose lifetimes are skewed (i.e., Object history starting with an unusual ref count)
Definition at line 55 of file refcounter.py.
References parse_line().
Referenced by main().