Navigation

Operators and Keywords

Function List:

C++ API

: profexport (dir)
: profexport (dir, data)
: profexport (dir, name)
: profexport (dir, name, data)

Export profiler data as HTML.

Export the profiling data in data into a series of HTML files in the folder dir. The initial file will be data/index.html.

If name is specified, it must be a string that contains a “name” for the profile being exported. This name is included in the HTML.

The input data is the structure returned by profile ("info"). If unspecified, profexport will use the current profile dataset.

See also: profshow, profexplore, profile.

Demonstration 1

The following code

 profile on;
 A = rand (100);
 B = expm (A);
 profile off;
 dir = tempname ();
 profexport (dir, "Example Profile");
 open (fullfile (dir, "index.html"));

gives an example of how 'profexport' is used.

Package: octave