Skip to content

Commit

Permalink
Merge pull request ARM-software#219 from ionela-voinescu/notebook_res…
Browse files Browse the repository at this point in the history
…tructure

Notebook restructure: Examples
  • Loading branch information
derkling authored Dec 13, 2016
2 parents ceafdb7 + aae360a commit 92f159e
Show file tree
Hide file tree
Showing 27 changed files with 9,193 additions and 8,148 deletions.
652 changes: 0 additions & 652 deletions ipynb/android/Android_Workloads.ipynb

This file was deleted.

523 changes: 0 additions & 523 deletions ipynb/android/benchmarks/Android_PCMark.ipynb

This file was deleted.

595 changes: 0 additions & 595 deletions ipynb/android/workloads/Android_Recents_Fling.ipynb

This file was deleted.

563 changes: 0 additions & 563 deletions ipynb/android/workloads/Android_YouTube.ipynb

This file was deleted.

1,267 changes: 0 additions & 1,267 deletions ipynb/devlib/examples/cgroups.ipynb

This file was deleted.

792 changes: 792 additions & 0 deletions ipynb/examples/android/benchmarks/Android_Jankbench.ipynb

Large diffs are not rendered by default.

560 changes: 560 additions & 0 deletions ipynb/examples/android/benchmarks/Android_PCMark.ipynb

Large diffs are not rendered by default.

750 changes: 750 additions & 0 deletions ipynb/examples/android/workloads/Android_Recents_Fling.ipynb

Large diffs are not rendered by default.

707 changes: 707 additions & 0 deletions ipynb/examples/android/workloads/Android_Workloads.ipynb

Large diffs are not rendered by default.

577 changes: 577 additions & 0 deletions ipynb/examples/android/workloads/Android_YouTube.ipynb

Large diffs are not rendered by default.

1,320 changes: 1,320 additions & 0 deletions ipynb/examples/devlib/cgroups_example.ipynb

Large diffs are not rendered by default.

53 changes: 35 additions & 18 deletions ipynb/examples/energy_meter/EnergyMeter_ACME.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,42 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font size=\"8\">Energy Meter Examples</font>\n",
"<br>\n",
"<font size=\"5\">BayLibre's ACME Cape and IIOCapture</font>\n",
"<br>\n",
"<hr>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import Required Modules"
"# Energy Meter Examples\n",
"\n",
"## BayLibre's ACME Cape and IIOCapture\n",
"\n",
"More information can be found at https://github.com/ARM-software/lisa/wiki/Energy-Meters-Requirements#iiocapture---baylibre-acme-cape."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2016-12-08 12:39:45,242 INFO : root : Using LISA logging configuration:\n",
"2016-12-08 12:39:45,243 INFO : root : /home/vagrant/lisa/logging.conf\n"
]
}
],
"source": [
"import logging\n",
"from conf import LisaLogging\n",
"LisaLogging.setup()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Import required modules"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand All @@ -56,7 +65,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Target Configuration"
"## Target Configuration\n",
"The target configuration is used to describe and configure your test environment.\n",
"You can find more details in **examples/utils/testenv_example.ipynb**."
]
},
{
Expand Down Expand Up @@ -155,7 +166,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Workload Execution and Power Consumptions Samping"
"## Workload Execution and Power Consumptions Samping\n",
"\n",
"Detailed information on RTApp can be found in **examples/wlgen/rtapp_example.ipynb**.\n",
"\n",
"Each **EnergyMeter** derived class has two main methods: **reset** and **report**.\n",
" - The **reset** method will reset the energy meter and start sampling from channels specified in the target configuration. <br>\n",
" - The **report** method will stop capture and will retrieve the energy consumption data. This returns an EnergyReport composed of the measured channels energy and the report file. Each of the samples can also be obtained, as you can see below."
]
},
{
Expand Down Expand Up @@ -273,7 +290,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Power Measurements Data"
"## Power Measurements Data"
]
},
{
Expand Down Expand Up @@ -469,7 +486,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
"version": "2.7.6"
},
"toc": {
"toc_cell": false,
Expand Down
58 changes: 33 additions & 25 deletions ipynb/examples/energy_meter/EnergyMeter_AEP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font size=\"8\">Energy Meter Examples</font>\n",
"<br>\n",
"<font size=\"5\">ARM Energy Probe</font>\n",
"<br>\n",
"<hr>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook shows how to use the `AEP` energy meters.\n",
"# Energy Meter Examples\n",
"\n",
"*NOTE*: `caiman` is required to collect data from the probe. Instructions on how to install it can be found here https://github.com/ARM-software/lisa/wiki/Energy-Meters-Requirements#arm-energy-probe-aep"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import Required Modules"
"## ARM Energy Probe\n",
"\n",
"*NOTE*: `caiman` is required to collect data from the probe. Instructions on how to install it can be found here https://github.com/ARM-software/lisa/wiki/Energy-Meters-Requirements#arm-energy-probe-aep."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2016-12-08 12:40:07,000 INFO : root : Using LISA logging configuration:\n",
"2016-12-08 12:40:07,000 INFO : root : /home/vagrant/lisa/logging.conf\n"
]
}
],
"source": [
"import logging\n",
"from conf import LisaLogging\n",
"LisaLogging.setup()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Import required modules"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand All @@ -65,7 +65,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Target Configuration"
"## Target Configuration\n",
"The target configuration is used to describe and configure your test environment.\n",
"You can find more details in **examples/utils/testenv_example.ipynb**."
]
},
{
Expand Down Expand Up @@ -163,7 +165,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Workload Execution and Power Consumptions Samping"
"## Workload Execution and Power Consumptions Samping\n",
"\n",
"Detailed information on RTApp can be found in **examples/wlgen/rtapp_example.ipynb**.\n",
"\n",
"Each **EnergyMeter** derived class has two main methods: **reset** and **report**.\n",
" - The **reset** method will reset the energy meter and start sampling from channels specified in the target configuration. <br>\n",
" - The **report** method will stop capture and will retrieve the energy consumption data. This returns an EnergyReport composed of the measured channels energy and the report file. Each of the samples can also be obtained, as you can see below."
]
},
{
Expand Down Expand Up @@ -275,7 +283,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Power Measurements Data"
"## Power Measurements Data"
]
},
{
Expand Down
51 changes: 34 additions & 17 deletions ipynb/examples/energy_meter/EnergyMeter_HWMON.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,42 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<font size=\"8\">Energy Meter Examples</font>\n",
"<br>\n",
"<font size=\"5\">Linux Kernel HWMon</font>\n",
"<br>\n",
"<hr>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import Required Modules"
"# Energy Meter Examples\n",
"\n",
"## Linux Kernel HWMon\n",
"\n",
"More details can be found at https://github.com/ARM-software/lisa/wiki/Energy-Meters-Requirements#linux-hwmon."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2016-12-08 12:40:25,090 INFO : root : Using LISA logging configuration:\n",
"2016-12-08 12:40:25,091 INFO : root : /home/vagrant/lisa/logging.conf\n"
]
}
],
"source": [
"import logging\n",
"from conf import LisaLogging\n",
"LisaLogging.setup()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Import required modules"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand All @@ -56,7 +65,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Target Configuration"
"## Target Configuration\n",
"The target configuration is used to describe and configure your test environment.\n",
"You can find more details in **examples/utils/testenv_example.ipynb**."
]
},
{
Expand Down Expand Up @@ -152,7 +163,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Workload Execution and Power Consumptions Samping"
"## Workload Execution and Power Consumptions Samping\n",
"\n",
"Detailed information on RTApp can be found in **examples/wlgen/rtapp_example.ipynb**.\n",
"\n",
"Each **EnergyMeter** derived class has two main methods: **reset** and **report**.\n",
" - The **reset** method will reset the energy meter and start sampling from channels specified in the target configuration. <br>\n",
" - The **report** method will stop capture and will retrieve the energy consumption data. This returns an EnergyReport composed of the measured channels energy and the report file. Each of the samples can also be obtained, as you can see below."
]
},
{
Expand Down Expand Up @@ -266,7 +283,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Power Measurements Data"
"## Power Measurements Data"
]
},
{
Expand Down
Loading

0 comments on commit 92f159e

Please sign in to comment.