This repository was archived by the owner on Sep 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgetting_started.html
52 lines (45 loc) · 1.77 KB
/
getting_started.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
layout: page
title: Getting started
subtitle: How to build and use the erlangpl script
---
<section>
<h4>Building</h4>
<p>The Erlang Performance Lab tool (erlangpl for short) can be started using escript or as a regular Erlang release. First we need to build it.</p>
<pre><code>$ git clone [email protected]:erlanglab/erlangpl.git
$ cd erlangpl
$ make rebar
$ make
$ ./bootstrap
</code></pre>
</section>
<section>
<h4>Running erlangpl script</h4>
<p>The erlangpl shell script is a self-contained escript, which can be started from a command line as long as you have Erlang/OTP installed.</p>
<pre><code>$ ./erlangpl -h
Usage: erlangpl [-n <node>] [-c <cookie>] [-p <plugin>] [-h]
[-v <verbose>] [-P <port>] [-V] [-s <sname>] [-l <name>]
-n, --node Monitored node name
-c, --cookie Overwrite ~/.erlang.cookie
-p, --plugin Path to plugins
-h, --help Show the program options
-v, --verbose Verbosity level (-v, -vv, -vvv)
-P, --port HTTP and WS port number
-V, --version Show version information
-s, --sname Start with a shortname
-l, --name Start with a longname, default [email protected]
$ ./erlangpl -n [email protected] -c YOURCOOKIE
</code></pre>
<p>Once started, try visiting http://localhost:8000/</p>
</section>
<section>
<h4>Running development release</h4>
<p>You can also start the tool as a regular Erlang release and connect to its console to debug the tool itself.</p>
<pre><code>$ make
$ rebar -f generate
$ ./rel/erlangpl/bin/erlangpl console [email protected] cookie=YOURCOOKIE
</code></pre>
</section>
<section>
<p>Have fun!</p>
</section>