From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30302 invoked by alias); 16 Nov 2007 19:47:47 -0000 Received: (qmail 30290 invoked by uid 22791); 16 Nov 2007 19:47:45 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc1-s41.bay0.hotmail.com (HELO bay0-omc1-s41.bay0.hotmail.com) (65.54.246.113) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 Nov 2007 19:47:41 +0000 Received: from BAY105-W29 ([65.54.224.129]) by bay0-omc1-s41.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 16 Nov 2007 11:47:35 -0800 Message-ID: From: C B To: Gary Thomas CC: Date: Fri, 16 Nov 2007 19:55:00 -0000 In-Reply-To: <473DDE1B.8000703@mlbassoc.com> References: <472B7580.4080409@mlbassoc.com> <473426B2.3080907@ecoscentric.com> <20071109185542.GC4401@lunn.ch> <47384695.2090107@mlbassoc.com> <20071114133044.GX4401@lunn.ch> <473B12DF.3020408@mlbassoc.com> <473DDE1B.8000703@mlbassoc.com> Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Performance timing X-SW-Source: 2007-11/txt/msg00133.txt.bz2 System profiling is probably what I need. Unfortunately there isn't an implementation of the profiling timer for my t= arget. Any information or guidance available that you're aware of for impl= ementing this? For what it's worth, my target is a arm based SAM9 variant. Thanks. > Date: Fri, 16 Nov 2007 11:14:51 -0700 > From: gary@mlbassoc.com > To: csb_80@hotmail.com > CC: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] Performance timing > > C B wrote: >> >> I'm interested in collecting some performance measures on some of my own= functions. Are there some simple utilities or example for doing this or is= looking at tm_basic.cxx the best bet? > > It depends on the scope of what you want to measure. The > techniques used by tm_basic are good for small things - those > that execute in less than a system tick (typically 10ms), but > using them requires some invasive changes (you have to explicitly > capture start and stop times for a function/segment, etc). > > Alternatively, you can turn on system profiling. All this > requires is a [fairly] high resolution timer and some RAM. > There is no need to modify your code directly. The data > is gathered into a RAM buffer and then offloaded (the only > method for this currently uses the network and TFTP). Once > you have the data off the box, it can be analyzed using > standard tools, such as 'gprof' > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook =96 together at last. =A0= Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=3DCL10062= 6971033 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss