Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit a20a989

Browse files
committedApr 9, 2017
Update color paletter and change header buttons
1 parent d1a4468 commit a20a989

File tree

5 files changed

+130
-73
lines changed

5 files changed

+130
-73
lines changed
 

‎_sass/libs/_vars.scss

+16-16
Original file line numberDiff line numberDiff line change
@@ -47,43 +47,43 @@
4747
border2-bg: rgba(144,144,144,0.5),
4848

4949
accent1: (
50-
bg: #21b2a6,
50+
bg: #1F79B7,
5151
fg-bold: #ffffff,
52-
fg: mix(#21b2a6, #ffffff, 25%),
53-
fg-light: mix(#21b2a6, #ffffff, 40%),
52+
fg: mix(#1F79B7, #ffffff, 25%),
53+
fg-light: mix(#1F79B7, #ffffff, 40%),
5454
border: rgba(0,0,0,0.125),
5555
border-bg: rgba(255,255,255,0.075),
5656
border2: rgba(0,0,0,0.25),
5757
border2-bg: rgba(255,255,255,0.2)
5858
),
5959

6060
accent2: (
61-
bg: #00ffcc,
61+
bg: #c7deed,
6262
fg-bold: #ffffff,
63-
fg: mix(#00ffcc, #ffffff, 25%),
64-
fg-light: mix(#00ffcc, #ffffff, 40%),
63+
fg: mix(#c7deed, #ffffff, 25%),
64+
fg-light: mix(#c7deed, #ffffff, 40%),
6565
border: rgba(0,0,0,0.125),
6666
border-bg: rgba(255,255,255,0.075),
6767
border2: rgba(0,0,0,0.25),
6868
border2-bg: rgba(255,255,255,0.2)
6969
),
7070

7171
accent3: (
72-
bg: #00f0ff,
72+
bg: #c7deed,
7373
fg-bold: #ffffff,
74-
fg: mix(#00f0ff, #ffffff, 25%),
75-
fg-light: mix(#00f0ff, #ffffff, 40%),
74+
fg: mix(#c7deed, #ffffff, 25%),
75+
fg-light: mix(#c7deed, #ffffff, 40%),
7676
border: rgba(0,0,0,0.125),
7777
border-bg: rgba(255,255,255,0.075),
7878
border2: rgba(0,0,0,0.25),
7979
border2-bg: rgba(255,255,255,0.2)
8080
),
8181

8282
accent4: (
83-
bg: #76ddff,
83+
bg: #c7deed,
8484
fg-bold: #ffffff,
85-
fg: mix(#76ddff, #ffffff, 25%),
86-
fg-light: mix(#76ddff, #ffffff, 40%),
85+
fg: mix(#c7deed, #ffffff, 25%),
86+
fg-light: mix(#c7deed, #ffffff, 40%),
8787
border: rgba(0,0,0,0.125),
8888
border-bg: rgba(255,255,255,0.075),
8989
border2: rgba(0,0,0,0.25),
@@ -102,10 +102,10 @@
102102
),
103103

104104
accent6: (
105-
bg: #ed4933,
105+
bg: #bfbfbf,
106106
fg-bold: #ffffff,
107-
fg: mix(#ed4933, #ffffff, 25%),
108-
fg-light: mix(#ed4933, #ffffff, 40%),
107+
fg: mix(#bfbfbf, #ffffff, 25%),
108+
fg-light: mix(#bfbfbf, #ffffff, 40%),
109109
border: rgba(0,0,0,0.125),
110110
border-bg: rgba(255,255,255,0.075),
111111
border2: rgba(0,0,0,0.25),
@@ -122,4 +122,4 @@
122122
border2: #bfbfbf,
123123
border2-bg: rgba(0,0,0,0.1)
124124
)
125-
);
125+
);

‎getting_started.html

-52
This file was deleted.

‎getting_started.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
layout: page
3+
title: Getting started
4+
subtitle: How to build and use the erlangpl script
5+
---
6+
7+
### Download prebuilt script
8+
9+
The easiest way to get started is to download a prebuilt `erlangpl` script
10+
([download link](https://erlang.pl/erlangpl.gz)).
11+
12+
### Build it manually
13+
14+
#### Prerequisites
15+
16+
For building UI you need to have following dependencies installed:
17+
* [node](https://nodejs.org/en/)
18+
* [yarn](https://yarnpkg.com/lang/en/)
19+
* [elm-lang](https://guide.elm-lang.org/install.html)
20+
21+
Be aware that building UI can take some time. It takes around 1 minute on stock MacBook 2015 plus dependencies
22+
download for the first time. Second time dependencies will be cached.
23+
24+
```
25+
$ git clone --recursive git@github.com:erlanglab/erlangpl.git
26+
$ cd erlangpl
27+
$ make rebar
28+
$ make build-ui
29+
$ make
30+
$ ./bootstrap
31+
```
32+
33+
## Running erlangpl script
34+
35+
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.
36+
37+
```
38+
$ ./erlangpl -h
39+
40+
Usage: erlangpl [-n <node>] [-c <cookie>] [-p <plugin>] [-h]
41+
[-v <verbose>] [-P <port>] [-V] [-s <sname>] [-l <name>]
42+
43+
-n, --node Monitored node name
44+
-c, --cookie Overwrite ~/.erlang.cookie
45+
-p, --plugin Path to plugins
46+
-h, --help Show the program options
47+
-v, --verbose Verbosity level (-v, -vv, -vvv)
48+
-P, --port HTTP and WS port number
49+
-V, --version Show version information
50+
-s, --sname Start with a shortname
51+
-l, --name Start with a longname, default erlangpl@127.0.0.1
52+
53+
$ ./erlangpl -n testnode@127.0.0.1 -c YOURCOOKIE
54+
```
55+
56+
Once started, try visiting http://localhost:8000/
57+
58+
## Examples
59+
60+
### Connecting to an Elixir iex session
61+
62+
```
63+
$ iex --name foo@127.0.0.1 -S mix
64+
```
65+
66+
```
67+
$ ./erlangpl --node foo@127.0.0.1
68+
```
69+
70+
### Mnesia cluster
71+
You can generate messages between nodes by querying a distributed database Mnesia.
72+
73+
To setup a Mnesia cluster, start several Erlang nodes with unique names e.g. `a@`, `b@`, `c@`, etc. and start the database on all of them:
74+
```
75+
erl -name a@127.0.0.1
76+
(a@127.0.0.1)1> mnesia:start().
77+
```
78+
Then create a `test_table` and configure it to be replicated on all nodes:
79+
```
80+
(a@127.0.0.1)2> mnesia:change_config(extra_db_nodes, ['b@127.0.0.1']).
81+
(a@127.0.0.1)3> mnesia:change_config(extra_db_nodes, ['c@127.0.0.1']).
82+
(a@127.0.0.1)4> mnesia:change_config(extra_db_nodes, ['d@127.0.0.1']).
83+
(a@127.0.0.1)5> mnesia:create_table(test_table, []).
84+
(a@127.0.0.1)6> [mnesia:add_table_copy(test_table, Node, ram_copies) || Node <- nodes()].
85+
```
86+
87+
Here are some behaviours you can test:
88+
```
89+
[begin mnesia:transaction(fun() -> mnesia:write({test_table, Key, "value"}) end), timer:sleep(10) end || Key <- lists:seq(1,2000)].
90+
[begin mnesia:sync_dirty(fun() -> mnesia:write({test_table, Key, "value"}) end), timer:sleep(10) end || Key <- lists:seq(1,2000)].
91+
[begin mnesia:dirty_write({test_table, Key, "value"}), timer:sleep(10) end || Key <- lists:seq(1,2000)].
92+
```
93+
94+
Videos from those experiments were posted on [YouTube](https://www.youtube.com/channel/UCGkcbu799cC1rtMaQtAajpg)
95+
96+
97+
## Running development release
98+
99+
You can also start the tool as a regular Erlang release and connect to its console to debug the tool itself.
100+
101+
```
102+
$ make
103+
$ rebar -f generate
104+
$ ./rel/erlangpl/bin/erlangpl console node=testnode@127.0.0.1 cookie=YOURCOOKIE
105+
```
106+
107+
Have fun!

‎images/erlanglab_message_passing.png

423 KB
Loading

‎index.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<h2>{{ site.title }}</h2>
88
<p>{{ site.description | markdownify }}</p>
99
<ul class="actions">
10-
<li><a href="https://erlang.pl/erlangpl.gz" class="button special icon fa-download">Download</a></li>
10+
<li><a href="https://github.com/erlanglab/erlangpl" class="button special icon fa-github" style="background-color: #1F79B7;">Our GitHub</a></li>
11+
<li><a href="/getting_started.html" class="button special icon fa-download" style="background-color: #8FBF47;">Getting Started</a></li>
12+
<li><a href="https://erlang.pl/erlangpl.gz" class="button special icon fa-download" style="background-color: #227A50;">Download</a></li>
1113
</ul>
1214
</div>
1315
<a href="#one" class="more scrolly">Learn More</a>
@@ -17,9 +19,9 @@ <h2>{{ site.title }}</h2>
1719
<section id="one" class="wrapper style1 special">
1820
<div class="inner">
1921
<header class="major">
20-
<h2>What is Erlang Performance Lab ?</h2>
21-
<p>It is a tool for developers working with the Erlang VM (BEAM).<br />
22-
It helps with observing a system and its performance analysis.</p>
22+
<h2>What is Erlang Performance Lab?</h2>
23+
<p>Tool for developers working with the Erlang VM (BEAM).<br />
24+
It helps with observing a system and its performance analysis.</p>
2325
</header>
2426
<ul class="icons major">
2527
<li><a href="https://github.com/erlanglab/erlangpl" class="icon fa-github major style1"><span class="label">GitHub</span></a></li>
@@ -94,7 +96,7 @@ <h2>Interested in erlang.pl?</h2>
9496
Don't forget to send us feedback!</p>
9597
</header>
9698
<ul class="actions vertical">
97-
<li><a href="https://erlang.pl/erlangpl.gz" class="button fit special">Download</a></li>
99+
<li><a href="https://erlang.pl/erlangpl.gz" class="button fit special icon fa-download" style="background-color: #8FBF47;">Download</a></li>
98100
<li><a href="mailto:info@erlang.pl" class="button fit">Feedback</a></li>
99101
</ul>
100102
</div>

0 commit comments

Comments
 (0)
This repository has been archived.