Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'debug': 0.03; 'think,': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:log': 0.09; 'debugging': 0.13; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; 'module,': 0.23; 'code': 0.26; 'function': 0.27; 'code,': 0.28; 'fixed': 0.29; 'url:library': 0.31; 'source': 0.32; "can't": 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'from:addr:yahoo.co.uk': 0.34; 'to:addr:python-list': 0.35; 'url:python': 0.35; 'received:org': 0.36; 'issue': 0.37; 'but,': 0.39; 'url:org': 0.39; 'to:addr:python.org': 0.40; 'permanently': 0.64; 'saw': 0.66; 'cause': 0.67; 'profile': 0.73 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: log and figure out what bits are slow and optimize them. Date: Fri, 10 Feb 2012 14:25:10 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-116-91.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0) Gecko/20120129 Thunderbird/10.0 In-Reply-To: X-Antivirus: avast! (VPS 120210-0, 10/02/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328883921 news.xs4all.nl 6944 [2001:888:2000:d::a6]:45680 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20164 Please don't top post. On 10/02/2012 12:59, Saju M wrote: > Yes i saw profile module, > I think, i have to do function call via > cProfile.run('foo()') > I know, we can debug this way. > But, I need a fixed logging system and want to use it in production. > I think, we can't permanently include profile's debugging code in > source code, > will cause any performance issue ?? > How about http://docs.python.org/library/logging.html ? -- Cheers. Mark Lawrence.