Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20164

Re: log and figure out what bits are slow and optimize them.

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 <python-python-list@m.gmane.org>
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 <breamoreboy@yahoo.co.uk>
Subject Re: log and figure out what bits are slow and optimize them.
Date Fri, 10 Feb 2012 14:25:10 +0000
References <a07666f2-a18b-4bf5-bbdc-8d7f74db09be@q8g2000pbb.googlegroups.com> <CAJ6cK1ZyvFbLPuhM7QemKxucR0h60UDPawqhxPYSo1fTe4FPag@mail.gmail.com> <CANR2JHi5a0+hQnE67LOjP8DVWd2Tb3pVa5=ir0iDRpyt6a976w@mail.gmail.com> <CANR2JHjCuJVDWQKX_+JuPGu_We6wT5J7njDoJezQD7xSHOLqog@mail.gmail.com> <CANR2JHih05nM4H+SNxU11_pLM_DXFaVSBYSS0vs9dOPhK-OC_Q@mail.gmail.com>
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 <CANR2JHih05nM4H+SNxU11_pLM_DXFaVSBYSS0vs9dOPhK-OC_Q@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5660.1328883921.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

log and figure out what bits are slow and optimize them. sajuptpm <sajuptpm@gmail.com> - 2012-02-10 04:30 -0800
  Re: log and figure out what bits are slow and optimize them. Arnaud Delobelle <arnodel@gmail.com> - 2012-02-10 12:38 +0000
    Re: log and figure out what bits are slow and optimize them. sajuptpm <sajuptpm@gmail.com> - 2012-02-10 04:56 -0800
      Re: log and figure out what bits are slow and optimize them. Kev Dwyer <kevin.p.dwyer@gmail.com> - 2012-02-10 22:37 +0000
        Re: log and figure out what bits are slow and optimize them. John Gordon <gordon@panix.com> - 2012-02-10 23:06 +0000
          Re: log and figure out what bits are slow and optimize them. sajuptpm <sajuptpm@gmail.com> - 2012-02-10 23:53 -0800
  Re: log and figure out what bits are slow and optimize them. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-02-10 14:25 +0000

csiph-web