Skip to content

Commit 2899a1b

Browse files
authored
Add workflow to generate doxygen size tables (#93)
* Add manual workflow for generating size table * Move size table to separate file
1 parent 7818fa0 commit 2899a1b

File tree

4 files changed

+59
-27
lines changed

4 files changed

+59
-27
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Memory statistics
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
memory_statistics:
8+
name: Calculate object sizes
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
submodules: 'recursive'
14+
- name: Measure sizes
15+
uses: FreeRTOS/CI-CD-Github-Actions/memory_statistics@main
16+
with:
17+
lib_name: coreHTTP
18+
src: |
19+
source/core_http_client.c
20+
source/dependency/3rdparty/http_parser/http_parser.c
21+
include: |
22+
source/include
23+
source/interface
24+
source/dependency/3rdparty/http_parser
25+
compiler_flags: |
26+
HTTP_DO_NOT_USE_CUSTOM_CONFIG
27+
- name: Upload table
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: size_table
31+
path: size_table.html

docs/doxygen/config.doxyfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ EXCLUDE_SYMBOLS =
924924
# that contain example code fragments that are included (see the \include
925925
# command).
926926

927-
EXAMPLE_PATH = ./source/include
927+
EXAMPLE_PATH = ./source/include ./docs/doxygen/include
928928

929929
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
930930
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
@@ -2572,4 +2572,4 @@ ALIASES += transportcallback="@ingroup http_callback_types"
25722572
ALIASES += transportstruct="@ingroup http_struct_types"
25732573
ALIASES += transportpage="@page http_transport_interface Transport Interface"
25742574
ALIASES += transportsectionimplementation="@section http_transport_interface_implementation Implementing the Transport Interface"
2575-
ALIASES += transportsectionoverview="@section http_transport_interface_overview Transport Interface Overview"
2575+
ALIASES += transportsectionoverview="@section http_transport_interface_overview Transport Interface Overview"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<table>
2+
<tr>
3+
<td colspan="3"><center><b>Code Size of coreHTTP (example generated with GCC for ARM Cortex-M)</b></center></td>
4+
</tr>
5+
<tr>
6+
<td><b>File</b></td>
7+
<td><b><center>With -O1 Optimization</center></b></td>
8+
<td><b><center>With -Os Optimization</center></b></td>
9+
</tr>
10+
<tr>
11+
<td>core_http_client.c</td>
12+
<td><center>3.1K</center></td>
13+
<td><center>2.5K</center></td>
14+
</tr>
15+
<tr>
16+
<td>http_parser.c (third-party utility)</td>
17+
<td><center>15.7K</center></td>
18+
<td><center>13.0K</center></td>
19+
</tr>
20+
<tr>
21+
<td><b>Total estimates</b></td>
22+
<td><b><center>18.8K</center></b></td>
23+
<td><b><center>15.5K</center></b></td>
24+
</tr>
25+
</table>

docs/doxygen/pages.dox

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,7 @@ Feature of HTTP/1.1 not supported in this library:
1717
@section http_memory_requirements Memory Requirements
1818
@brief Memory requirements of the HTTP Client library.
1919

20-
<table>
21-
<tr>
22-
<td colspan="3"><center><b>Code size of HTTP Client library (example generated with GCC for ARM Cortex-M)</b></center></td>
23-
</tr>
24-
<tr>
25-
<td><b>File</b></td>
26-
<td><b>With -O1 Optimization</b></td>
27-
<td><b>With -Os Optimization</b></td>
28-
</tr>
29-
<tr>
30-
<td>core_http_client.c</td>
31-
<td><center>3.1K</center></td>
32-
<td><center>2.5K</center></td>
33-
</tr>
34-
<tr>
35-
<td>http_parser.c (third-party utility)</td>
36-
<td><center>15.7K</center></td>
37-
<td><center>13.0K</center></td>
38-
</tr>
39-
<tr>
40-
<td><b>Total estimate</b></td>
41-
<td><center><b>18.8K</b></center></td>
42-
<td><center><b>15.5K</b></center></td>
43-
</tr>
44-
</table>
20+
@include{doc} size_table.html
4521
*/
4622

4723
/**

0 commit comments

Comments
 (0)