Erlang -- percept_profile

User's Guide
Reference Manual
Release Notes
PDF
Top

Percept
Reference Manual
Version 0.9

Expand All
Contract All

Table of Contents

- egd
  - Top of manual page
  - color/1
  - create/2
  - destroy/1
  - filledEllipse/4
  - filledRectangle/4
  - line/4
  - rectangle/4
  - render/1
  - render/2
  - render/3
  - save/2
  - text/5
- percept
  - Top of manual page
  - analyze/1
  - profile/1
  - profile/3
  - profile/2
  - start_webserver/0
  - start_webserver/1
  - stop_profile/0
  - stop_webserver/0
- percept_profile
  - Top of manual page
  - start/1
  - start/3
  - start/2
  - stop/0

# percept_profile

### MODULE

percept_profile

### MODULE SUMMARY

Percept Collector.

### DESCRIPTION

Percept Collector

This module provides the user interface for the percept data collection (profiling).

### DATA TYPES

percept_option() = procs | ports | exclusive

### EXPORTS

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

Equivalent to start(Filename, [procs]).

start(Filename::string(), Options::[percept_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/0 is needed to stop profiling.

start(Filename::string(), MFA::mfa(), Options::[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/0 is needed, the profiling stops when the entry function returns.

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

Stops profiling.