Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | wgould@stata.com (William Gould, StataCorp LP) |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Mata performance monitoring |
Date | Mon, 07 Feb 2011 13:06:40 -0600 |
Gordon Hughes <G.A.Hughes@ed.ac.uk> writes, > I am experiencing severe performance bottlenecks in implementing a > maximum likelihood estimator for spatial panel data using Mata. This > is not surprising given [...] > > [...] I would like to find out where the pay-off would be greatest > for improving the code and reducing memory usage. Some systems offer > tools that permit the user to track how much time and memory is > consumed [...] There is an undocumented Mata functioun that may be helpful; see -help mata timer()-. Mata provides up to 100 independent timers for timing blocks of code, and will give statistics on number of calls, total time, and average time per call. There is no tool for documenting memory consumption. For a complete list of the undocumented features of Stata, see -help undocumented-. -- Bill wgould@stata.com * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/