2011-11-13から1日間の記事一覧

PythonでPHPのXdebugみたいなプロファイラ作った

作ってみたのはいいけど、WSGIで正しく動かない。 あと動作が遅い。 xdebug.py # set encoding=utf-8 import inspect import types from time import time import re import traceback import logging classname_reg = re.compile(r"<class '([^']+)'>") class Xdebug(object)</class>…