Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Mata performance monitoring

From (William Gould, StataCorp LP)
Subject   Re: st: Mata performance monitoring
Date   Mon, 07 Feb 2011 13:06:40 -0600

Gordon Hughes <> 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
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index