[Ericsson AB]

percept

MODULE

percept

MODULE SUMMARY

Percept - Erlang Concurrency Profiling Tool.

DESCRIPTION

Percept - Erlang Concurrency Profiling Tool

This module provides the user interface for the application.

DATA TYPES

percept_option() = procs | ports | exclusive

EXPORTS

analyze(Filename::string()) -> ok | {error, Reason}

Analyse file.

profile(Filename::string()) -> {ok, Port} | {already_started, Port}

Equivalent to profile(Filename, [procs]).

profile(Filename::string(), Options::[profile_option()]) -> {ok, Port} | {already_started, Port}

Types:

Port = port()

Starts profiling with supplied options. All events are stored in the file given by Filename. An explicit call to stop_profile/0 is needed to stop profiling.

See also: stop_profile/0.

profile(Filename::string(), MFA::mfa(), Opts::[percept_option()]) -> ok | {already_started, Port} | {error, not_started}

Types:

Port = port()

Starts profiling at the entrypoint specified by the MFA. All events are collected, this means that processes outside the scope of the entry-point are also profiled. No explicit call to stop_profile/0 is needed, the profiling stops when the entry function returns.

start_webserver() -> {started, Hostname, Port} | {error, Reason}

Types:

Hostname = string()
Port = integer()
Reason = term()

Starts webserver.

start_webserver(Port::integer()) -> {started, Hostname, AssignedPort} | {error, Reason}

Types:

Hostname = string()
AssignedPort = integer()
Reason = term()

Starts webserver. If port number is 0, an available port number will be assigned by inets.

stop_profile() -> ok | {error, not_started}

Stops profiling.

stop_webserver() -> ok | {error, not_started}

Stops webserver.

AUTHORS

Björn-Egil Dahlberg - support@erlang.ericsson.se

percept 0.5.0
Copyright © 1991-2007 Ericsson AB