Commit 39cdd957 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

+= trace_jitter for paper

parent 73bcd941
......@@ -31,9 +31,10 @@
"source": [
"from xlap.parse import evaluate, parse_config\n",
"config = parse_config(\"drone/xlap.yml\")\n",
"protocol = \"python\"\n",
"data_files = {\n",
" \"sender\": \"drone/sender.csv\",\n",
" \"receiver\": \"drone/receiver.csv\"\n",
" \"sender\": \"drone/{}-bridge/sender.csv\".format(protocol),\n",
" \"receiver\": \"drone/{}-bridge/receiver.csv\".format(protocol)\n",
"}\n",
"df_1 = evaluate(data_files[\"sender\"], data_files[\"receiver\"], config=config, kind=0)\n",
"df_1.name = \"\"\n",
......@@ -73,7 +74,7 @@
"outputs": [],
"source": [
"from xlap.analyse.jitter import trace_jitter\n",
"trace_jitter(df_1, config)"
"trace_jitter(df_1, config,file_name=\"{}_trace_jitter.pdf\".format(protocol),export=True)"
]
},
{
......@@ -113,13 +114,6 @@
"from xlap.analyse.correlation import multi_correlation\n",
"multi_correlation(dfs, config, colors=colors, figsize=(3.0,2.0), cols=4)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
......@@ -138,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.6.9"
}
},
"nbformat": 4,
......
%% Cell type:markdown id: tags:
# X-Lap in Action
%% Cell type:code id: tags:
``` python
%matplotlib inline
```
%% Cell type:markdown id: tags:
## Data Retrieval
%% Cell type:code id: tags:
``` python
from xlap.parse import evaluate, parse_config
config = parse_config("drone/xlap.yml")
protocol = "python"
data_files = {
"sender": "drone/sender.csv",
"receiver": "drone/receiver.csv"
"sender": "drone/{}-bridge/sender.csv".format(protocol),
"receiver": "drone/{}-bridge/receiver.csv".format(protocol)
}
df_1 = evaluate(data_files["sender"], data_files["receiver"], config=config, kind=0)
df_1.name = ""
dfs = [df_1]
```
%% Cell type:markdown id: tags:
## Individual Packet Traces
%% Cell type:code id: tags:
``` python
from xlap.analyse.trace import traces
traces(df_1, config, global_xaxis=True)
```
%% Cell type:markdown id: tags:
## Trace Jitter Analysis
%% Cell type:code id: tags:
``` python
from xlap.analyse.jitter import trace_jitter
trace_jitter(df_1, config)
trace_jitter(df_1, config,file_name="{}_trace_jitter.pdf".format(protocol),export=True)
```
%% Cell type:markdown id: tags:
## Latency Distributions
%% Cell type:code id: tags:
``` python
from xlap.analyse.cdf import multi_cdf
from xlap.analyse.util import colors
import copy
cfg = copy.deepcopy(config)
multi_cdf(dfs, cfg, colors=colors)
```
%% Cell type:markdown id: tags:
## Correlation with E2E Latency
%% Cell type:code id: tags:
``` python
from xlap.analyse.correlation import multi_correlation
multi_correlation(dfs, config, colors=colors, figsize=(3.0,2.0), cols=4)
```
%% Cell type:code id: tags:
``` python
```
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment