Experimental Physics and Industrial Control System
|
Hi Pete,
On Jul 17, 2020, at 3:19 PM, Siddons, David via Tech-talk < tech-talk at aps.anl.gov> wrote:
I'd like to understand where my IOC code is taking its time, and gprof seems like the right tool for this, is that right? Where would I add the compile flags (-pg)?
I’ve never tried gprof myself, but I can answer the build question.
If you’re just profiling the code in a specific module you could add them to the USR_CFLAGS and/or USR_CXXFLAGS variables in a specific Makefile. However if you want them to apply to everything during a rebuild we have a set of similar variables that are
strictly for use from the command-line, so you would say something like
make rebuild CMD_CFLAGS=-pg CMD_CXXFLAGS=-pg
These variables have been present since 3.14.12.5.
Note that if you use this when building Base you may be running profiling during the build process itself as we build and run the antelope and e_flex programs (our versions of lex and yacc) and makeBpt as part of the build. The other build-time tools are
all scripts though.
HTH,
- Andrew
--
Complexity comes for free, simplicity you have to work for.
|
- References:
- profiling an IOC Siddons, David via Tech-talk
- Navigate by Date:
- Prev:
profiling an IOC Siddons, David via Tech-talk
- Next:
archiver viewer plug in with archiver appliance in Linux astrid morreale via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
profiling an IOC Siddons, David via Tech-talk
- Next:
Re: profiling an IOC Michael Davidsaver via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|
ANJ, 18 Jul 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|