Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'debug': 0.03; 'context': 0.04; '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; '*any*': 0.16; 'wrote:': 0.18; 'module,': 0.23; 'code': 0.26; 'function': 0.27; 'code,': 0.28; 'fixed': 0.29; 'source': 0.32; "can't": 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints- To:1': 0.34; 'hi,': 0.34; 'to:addr:python-list': 0.35; 'received:org': 0.36; 'issue': 0.37; 'think': 0.38; 'but,': 0.39; 'to:addr:python.org': 0.40; 'your': 0.61; 'permanently': 0.64; 'saw': 0.66; 'cause': 0.67; 'header:Reply-To:1': 0.70; 'reply- to:no real name:2**0': 0.72; 'profile': 0.73; 'reply- to:addr:gmail.com': 0.76 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Kev Dwyer Subject: Re: log and figure out what bits are slow and optimize them. Date: Fri, 10 Feb 2012 22:37:18 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: cpc7-hari14-2-0-cust162.20-2.cable.virginmedia.com Mail-Copies-To: kevin.p.dwyer@gmail.com User-Agent: KNode/4.7.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: kevin.p.dwyer@gmail.com 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328913452 news.xs4all.nl 6906 [2001:888:2000:d::a6]:41836 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20199 sajuptpm wrote: > Hi, > > 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 ?? *Any* instrumentation code is going to affect performance. It's a trade-off that you need to analyse and manage in the context of your application.