⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profiler.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 11mar2005}{...}
{cmd:help profiler}{right:also see:  {help undocumented}}
{hline}

{title:Title}

{p 4 18 2}
{hi:profiler} {hline 2} Profile Stata programs by recording and reporting time
spent in each program


{title:Syntax}

	{cmd:profiler} {cmd:on}

	{cmd:profiler} {cmd:off}

	{cmd:profiler} {cmd:clear}

	{cmd:profiler} {cmd:report}


{title:Description}

{pstd}
{cmd:profiler} is a programmer's command that can help in optimizing ado-files
and other Stata programs.  When profiling is turned on, {cmd:profiler on},
Stata begins keeping a record of each time a program is run and how much time
is spent in the program.  The record includes only the time spent directly in
a program and not time spent in other programs that are themselves invoked by
the program -- these latter times are recorded with the invoked program.

{pstd}
{cmd:profiler report} produces a report of the number of times each program
has been invoked and a running total of the amount of time spent in that
program while profiling is on.

{pstd}
{cmd:profiler off} turns off profiling, counting program invocations and
times, but does not clear the registers.  If {cmd:profiler on} is typed after
turning profiling off, the original record is retained and new timings are
added into this record.

{pstd}
{cmd:profiler clear} clears the profiling record, that is to say it sets all
timings and counters to 0.  If profiling is on, it remains on, if is off, it
remains off.


{title:Examples}

{pstd}To profile heckman.ado and all programs it invokes:

{phang2}{cmd:. profiler on}{p_end}
{phang2}{cmd:. heckman ...}{p_end}
{phang2}{cmd:. profiler off}{p_end}
{phang2}{cmd:. profiler report}


{title:Also see}

{psee}
Online:  {help rmsg}, {helpb trace}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -