Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W Wiki Home
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • SDK4ED WikiSDK4ED Wiki
  • Wiki Home
  • Wiki
  • Energy Toolbox Usage

Energy Toolbox Usage · Changes

Page history
Updated Energy-Toolbox-Usage.md (markdown) authored May 18, 2020 by Haris Marantos (ICCS)'s avatar Haris Marantos (ICCS)
Hide whitespace changes
Inline Side-by-side
Energy-Toolbox-Usage.md
View page @ a999c259
......@@ -61,5 +61,840 @@ http://<local_ip>:3002/analysis?new=T&user=<github-user>&token=<github-token>&ur
After the successful execution of the analysis, a JSON report with the results is produced and sent as a response to the user. See an example of the full analysis below:
```
{
"topStaticsLoop2": {
"rows": {
"0": {
"start line": "202",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "0.00329329190142",
"hotspot": "0",
"end line": "206"
},
"1": {
"start line": "203",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000115333487948",
"hotspot": "1",
"end line": "205"
},
"2": {
"start line": "207",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000343715740294",
"hotspot": "2",
"end line": "211"
},
"3": {
"start line": "343",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.16958634594e-05",
"hotspot": "3",
"end line": "344"
},
"5": {
"start line": "598",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.16958634594e-05",
"hotspot": "5",
"end line": "599"
},
"6": {
"start line": "612",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.16958634594e-05",
"hotspot": "6",
"end line": "613"
},
"7": {
"start line": "621",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.16958634594e-05",
"hotspot": "7",
"end line": "622"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "source file",
"label": "Source file"
}
}
},
"topStaticsLoop1": {
"rows": {
"0": {
"start line": "202",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "0.00922606773898",
"hotspot": "0",
"end line": "206"
},
"1": {
"start line": "203",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000287156472824",
"hotspot": "1",
"end line": "205"
},
"2": {
"start line": "207",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000724184301708",
"hotspot": "2",
"end line": "211"
},
"3": {
"start line": "343",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.49397754941e-05",
"hotspot": "3",
"end line": "344"
},
"5": {
"start line": "598",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.49397754941e-05",
"hotspot": "5",
"end line": "599"
},
"6": {
"start line": "612",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.49397754941e-05",
"hotspot": "6",
"end line": "613"
},
"7": {
"start line": "621",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "2.49397754941e-05",
"hotspot": "7",
"end line": "622"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "source file",
"label": "Source file"
}
}
},
"topHotspotsLoop": {
"rows": {
"0": {
"end": 206,
"source": "./mounted_folder/neurasmus/imdcode.c",
"testing": 2,
"hotspot": 1,
"cpuusage": 3,
"start": 202,
"cache_miss": 0,
"type": "CursorKind.FOR_STMT"
},
"1": {
"end": 562,
"source": "./mounted_folder/neurasmus/imdcode.c",
"testing": 2,
"hotspot": 2,
"cpuusage": 1,
"start": 557,
"cache_miss": 0,
"type": "CursorKind.IF_STMT"
},
"2": {
"end": 606,
"source": "./mounted_folder/neurasmus/imdcode.c",
"testing": 2,
"hotspot": 3,
"cpuusage": 1,
"start": 601,
"cache_miss": 0,
"type": "CursorKind.IF_STMT"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start",
"label": "Line start"
},
"2": {
"field": "end",
"label": "Line end"
},
"3": {
"field": "cpuusage",
"label": "CPU-cycles (%)"
},
"4": {
"field": "cache_miss",
"label": "Cache miss (%)"
},
"5": {
"field": "source",
"label": "Source file"
},
"6": {
"field": "type",
"label": "Type"
},
"7": {
"field": "testing",
"label": "Just a test"
}
}
},
"energyIndicatorsSummary": {
"branchmiss": "3.85%",
"Icachemiss": "3.47%",
"memoryaccesses": 35331,
"cpucycles": 773137,
"cachemiss": "6.36%",
"dataraces": 0
},
"totalenergyIndicator": {
"mainplatform3": "0.0352635513396",
"mainplatform2": "0.0965552055398",
"mainplatform1": "0.107910715077"
},
"projectName": "neurasmus",
"topStaticsFunction": {
"rows": {
"0": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "32",
"hotspot": "0",
"energy prediction": "0.000222659689645",
"function name": "fi",
"end line": "44"
},
"1": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "47",
"hotspot": "1",
"energy prediction": "0.000994780648866",
"function name": "fo",
"end line": "62"
},
"2": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "65",
"hotspot": "2",
"energy prediction": "0.000118517799359",
"function name": "fl",
"end line": "82"
},
"3": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "85",
"hotspot": "3",
"energy prediction": "0.000118517799359",
"function name": "flinv",
"end line": "103"
},
"4": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "106",
"hotspot": "4",
"energy prediction": "0.0101992179965",
"function name": "misty1_encrypt_block",
"end line": "153"
},
"5": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "156",
"hotspot": "5",
"energy prediction": "0.0101992179965",
"function name": "misty1_decrypt_block",
"end line": "181"
},
"6": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "184",
"hotspot": "6",
"energy prediction": "1.43759090726e-05",
"function name": "bcopy_u4_byte",
"end line": "189"
},
"7": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "192",
"hotspot": "7",
"energy prediction": "0.000919390576725",
"function name": "misty1_keyinit",
"end line": "212"
},
"8": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "215",
"hotspot": "8",
"energy prediction": "1.43759090726e-05",
"function name": "misty1_key_destroy",
"end line": "218"
},
"10": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "140",
"hotspot": "10",
"energy prediction": "0.0102135939055",
"function name": "crand",
"end line": "149"
},
"11": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "191",
"hotspot": "11",
"energy prediction": "0.0105260195764",
"function name": "cmac",
"end line": "211"
},
"12": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "218",
"hotspot": "12",
"energy prediction": "0.107910715077",
"function name": "main",
"end line": "705"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "function name",
"label": "Function Name"
},
"5": {
"field": "source file",
"label": "Source file"
}
}
},
"topHotspotsFunction": {
"rows": {
"0": {
"function": "fi(u4, u4)",
"end": 44,
"source": "./mounted_folder/neurasmus/misty1.c",
"testing": 1,
"hotspot": 1,
"cpuusage": 3,
"start": 32,
"cache_miss": 9
},
"1": {
"function": "fo(u4 *, u4, byte)",
"end": 62,
"source": "./mounted_folder/neurasmus/misty1.c",
"testing": 1,
"hotspot": 2,
"cpuusage": 1,
"start": 47,
"cache_miss": 0
},
"2": {
"function": "misty1_encrypt_block(u4 *, u4 *, u4 *)",
"end": 153,
"source": "./mounted_folder/neurasmus/misty1.c",
"testing": 1,
"hotspot": 3,
"cpuusage": 4,
"start": 106,
"cache_miss": 0
},
"3": {
"function": "cmac(u4 *, u4 *, int, u4 *, u4 *)",
"end": 211,
"source": "./mounted_folder/neurasmus/imdcode.c",
"testing": 1,
"hotspot": 4,
"cpuusage": 3,
"start": 191,
"cache_miss": 0
},
"4": {
"function": "main()",
"end": 705,
"source": "./mounted_folder/neurasmus/imdcode.c",
"testing": 1,
"hotspot": 5,
"cpuusage": 5,
"start": 218,
"cache_miss": 16
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start",
"label": "Line start"
},
"2": {
"field": "end",
"label": "Line end"
},
"3": {
"field": "cpuusage",
"label": "CPU-cycles (%)"
},
"4": {
"field": "cache_miss",
"label": "Cache miss (%)"
},
"5": {
"field": "source",
"label": "Source file"
},
"6": {
"field": "function",
"label": "Function Name"
},
"7": {
"field": "testing",
"label": "Just a test"
}
}
},
"analysis": "full",
"OptimizationLoop": {
"rows": {
"0": {
"optimization": "Acceleration (>10x estimated energy gains)",
"hotspot": 1
},
"1": {
"optimization": "Acceleration (3x estimated energy gains)",
"hotspot": 2
},
"2": {
"optimization": "Acceleration (3x estimated energy gains)",
"hotspot": 3
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "optimization",
"label": "Proposed Optimization"
}
}
},
"OptimizationFunc": {
"rows": {
"0": {
"optimization": "no",
"hotspot": 1
},
"1": {
"optimization": "Acceleration (5x estimated energy gains)",
"hotspot": 2
},
"2": {
"optimization": "no",
"hotspot": 3
},
"3": {
"optimization": "Acceleration",
"hotspot": 4
},
"4": {
"optimization": "no",
"hotspot": 5
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "optimization",
"label": "Proposed Optimization"
}
}
},
"topStaticsFunction1": {
"rows": {
"0": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "32",
"hotspot": "0",
"energy prediction": "0.000199750907048",
"function name": "fi",
"end line": "44"
},
"1": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "47",
"hotspot": "1",
"energy prediction": "0.000886409193967",
"function name": "fo",
"end line": "62"
},
"2": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "65",
"hotspot": "2",
"energy prediction": "0.000112345341271",
"function name": "fl",
"end line": "82"
},
"3": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "85",
"hotspot": "3",
"energy prediction": "0.000112345341271",
"function name": "flinv",
"end line": "103"
},
"4": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "106",
"hotspot": "4",
"energy prediction": "0.00911372239771",
"function name": "misty1_encrypt_block",
"end line": "153"
},
"5": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "156",
"hotspot": "5",
"energy prediction": "0.00911372239771",
"function name": "misty1_decrypt_block",
"end line": "181"
},
"6": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "184",
"hotspot": "6",
"energy prediction": "2.49397754941e-05",
"function name": "bcopy_u4_byte",
"end line": "189"
},
"7": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "192",
"hotspot": "7",
"energy prediction": "0.000848883179179",
"function name": "misty1_keyinit",
"end line": "212"
},
"8": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "215",
"hotspot": "8",
"energy prediction": "2.49397754941e-05",
"function name": "misty1_key_destroy",
"end line": "218"
},
"10": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "140",
"hotspot": "10",
"energy prediction": "0.0091386621732",
"function name": "crand",
"end line": "149"
},
"11": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "191",
"hotspot": "11",
"energy prediction": "0.00940087887053",
"function name": "cmac",
"end line": "211"
},
"12": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "218",
"hotspot": "12",
"energy prediction": "0.0965552055398",
"function name": "main",
"end line": "705"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "function name",
"label": "Function Name"
},
"5": {
"field": "source file",
"label": "Source file"
}
}
},
"topStaticsLoop": {
"rows": {
"0": {
"start line": "202",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "0.0103177357958",
"hotspot": "0",
"end line": "206"
},
"1": {
"start line": "203",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000326801579931",
"hotspot": "1",
"end line": "205"
},
"2": {
"start line": "207",
"source file": "./mounted_folder/neurasmus/misty1.c",
"energy prediction": "0.000847511031362",
"hotspot": "2",
"end line": "211"
},
"3": {
"start line": "343",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "1.43759090726e-05",
"hotspot": "3",
"end line": "344"
},
"5": {
"start line": "598",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "1.43759090726e-05",
"hotspot": "5",
"end line": "599"
},
"6": {
"start line": "612",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "1.43759090726e-05",
"hotspot": "6",
"end line": "613"
},
"7": {
"start line": "621",
"source file": "./mounted_folder/neurasmus/imdcode.c",
"energy prediction": "1.43759090726e-05",
"hotspot": "7",
"end line": "622"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "source file",
"label": "Source file"
}
}
},
"topStaticsFunction2": {
"rows": {
"0": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "32",
"hotspot": "0",
"energy prediction": "6.96570374789e-05",
"function name": "fi",
"end line": "44"
},
"1": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "47",
"hotspot": "1",
"energy prediction": "0.000324304600385",
"function name": "fo",
"end line": "62"
},
"2": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "65",
"hotspot": "2",
"energy prediction": "2.39805870097e-05",
"function name": "fl",
"end line": "82"
},
"3": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "85",
"hotspot": "3",
"energy prediction": "2.39805870097e-05",
"function name": "flinv",
"end line": "103"
},
"4": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "106",
"hotspot": "4",
"energy prediction": "0.00326931131441",
"function name": "misty1_encrypt_block",
"end line": "153"
},
"5": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "156",
"hotspot": "5",
"energy prediction": "0.00326931131441",
"function name": "misty1_decrypt_block",
"end line": "181"
},
"6": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "184",
"hotspot": "6",
"energy prediction": "2.16958634594e-05",
"function name": "bcopy_u4_byte",
"end line": "189"
},
"7": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "192",
"hotspot": "7",
"energy prediction": "0.000408803330672",
"function name": "misty1_keyinit",
"end line": "212"
},
"8": {
"source file": "./mounted_folder/neurasmus/misty1.c",
"start line": "215",
"hotspot": "8",
"energy prediction": "2.16958634594e-05",
"function name": "misty1_key_destroy",
"end line": "218"
},
"10": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "140",
"hotspot": "10",
"energy prediction": "0.00329100717787",
"function name": "crand",
"end line": "149"
},
"11": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "191",
"hotspot": "11",
"energy prediction": "0.00338464480235",
"function name": "cmac",
"end line": "211"
},
"12": {
"source file": "./mounted_folder/neurasmus/imdcode.c",
"start line": "218",
"hotspot": "12",
"energy prediction": "0.0352635513396",
"function name": "main",
"end line": "705"
}
},
"columns": {
"0": {
"field": "hotspot",
"label": "Hot-spot"
},
"1": {
"field": "start line",
"label": "Start Line"
},
"2": {
"field": "end line",
"label": "End line"
},
"3": {
"field": "energy prediction",
"label": "Energy estimated"
},
"4": {
"field": "function name",
"label": "Function Name"
},
"5": {
"field": "source file",
"label": "Source file"
}
}
}
}
```
\ No newline at end of file
Clone repository
  • Advanced
  • Architectural Toolbox Description
  • Architectural Toolbox Front End
  • Architectural Toolbox Home
  • Architectural Toolbox Installation
  • Architectural Toolbox Usage
  • Decision Support Toolbox Description
  • Decision Support Toolbox Front end
  • Decision Support Toolbox Installation
  • Decision Support Toolbox Usage
  • Decision Support Toolbox
  • Energy Toolbox Description
  • Energy Toolbox Front end
  • Energy Toolbox Installation
  • Energy Toolbox Usage
View All Pages