autosar-calltree 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- autosar_calltree/database/function_database.py +11 -1
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/METADATA +1 -1
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/RECORD +7 -7
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/WHEEL +0 -0
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/entry_points.txt +0 -0
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/licenses/LICENSE +0 -0
- {autosar_calltree-0.3.1.dist-info → autosar_calltree-0.3.2.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,16 @@ from ..parsers.c_parser import CParser
|
|
|
25
25
|
from .models import FunctionInfo
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
def _format_file_size(size_bytes: int) -> str:
|
|
29
|
+
"""Format file size in human-readable format."""
|
|
30
|
+
if size_bytes >= 1024 * 1024:
|
|
31
|
+
return f"{size_bytes / (1024 * 1024):.2f}M"
|
|
32
|
+
elif size_bytes >= 1024:
|
|
33
|
+
return f"{size_bytes / 1024:.2f}K"
|
|
34
|
+
else:
|
|
35
|
+
return str(size_bytes)
|
|
36
|
+
|
|
37
|
+
|
|
28
38
|
@dataclass
|
|
29
39
|
class CacheMetadata:
|
|
30
40
|
"""Metadata for cache validation."""
|
|
@@ -132,7 +142,7 @@ class FunctionDatabase:
|
|
|
132
142
|
|
|
133
143
|
# Parse each file
|
|
134
144
|
for idx, file_path in enumerate(c_files, 1):
|
|
135
|
-
print(f"Processing: [{idx}/{len(c_files)}] {file_path.name}")
|
|
145
|
+
print(f"Processing: [{idx}/{len(c_files)}] {file_path.name} (Size: {_format_file_size(file_path.stat().st_size)})")
|
|
136
146
|
|
|
137
147
|
try:
|
|
138
148
|
self._parse_file(file_path)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: autosar-calltree
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A Python tool to analyze C/AUTOSAR codebases and generate function call trees with Mermaid and XMI output
|
|
5
5
|
Author-email: melodypapa <melodypapa@outlook.com>
|
|
6
6
|
Maintainer-email: melodypapa <melodypapa@outlook.com>
|
|
@@ -7,16 +7,16 @@ autosar_calltree/cli/main.py,sha256=5svIu95DykrQBtjmhQTOTe-RdM9LkIgnnUnvfvivMM8,
|
|
|
7
7
|
autosar_calltree/config/__init__.py,sha256=mSrB2uvrax_MTgGynfPObXYUh6eCe5BZD21_cebfMQM,258
|
|
8
8
|
autosar_calltree/config/module_config.py,sha256=--ptsY6drvVKn_HD5_JDEpCv9D1xI8kiJXi8bwrSFBI,6329
|
|
9
9
|
autosar_calltree/database/__init__.py,sha256=qg0IfUGgkecJQXqe9lPrU0Xbu-hBZa8NOe8E8UZqC_s,405
|
|
10
|
-
autosar_calltree/database/function_database.py,sha256=
|
|
10
|
+
autosar_calltree/database/function_database.py,sha256=PJghwv2Duxx7vSIvApyVwg4N_bCTfnk85mtA89BpIuA,17561
|
|
11
11
|
autosar_calltree/database/models.py,sha256=xo85zao2LDHJMR6FeMVxopPyXxEv7jQUzeh4fzHwNKo,6265
|
|
12
12
|
autosar_calltree/generators/__init__.py,sha256=wlSAuykXkxIjwP9H1C2iY99nbyt14Kp1Y6GxmDEDmDk,122
|
|
13
13
|
autosar_calltree/generators/mermaid_generator.py,sha256=LcmWOACLAw3r7UQlnSlTM-_kpKQ6RGdgc6aNqXeMF7A,16191
|
|
14
14
|
autosar_calltree/parsers/__init__.py,sha256=O0NTHrZqe6GXvU9_bLuAoAV_hxv7gHOgkH8KWSBmX1Y,151
|
|
15
15
|
autosar_calltree/parsers/autosar_parser.py,sha256=iwF1VR4NceEfmc3gPP31CcVNPfRRVTj_aA6N94saXDA,10750
|
|
16
16
|
autosar_calltree/parsers/c_parser.py,sha256=OQ0HklIV1aSWvxe6qjj5bwP5Drz4cmxhFrdrOBpZdFU,14744
|
|
17
|
-
autosar_calltree-0.3.
|
|
18
|
-
autosar_calltree-0.3.
|
|
19
|
-
autosar_calltree-0.3.
|
|
20
|
-
autosar_calltree-0.3.
|
|
21
|
-
autosar_calltree-0.3.
|
|
22
|
-
autosar_calltree-0.3.
|
|
17
|
+
autosar_calltree-0.3.2.dist-info/licenses/LICENSE,sha256=Xy30Wm38nOLXLZZFgn9oD_3UcayYkm81xtn8IByrBlk,1067
|
|
18
|
+
autosar_calltree-0.3.2.dist-info/METADATA,sha256=oLQzj1T0HauxX38XVi7tHunMvO20raEydsGHKDfnFRY,15530
|
|
19
|
+
autosar_calltree-0.3.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
20
|
+
autosar_calltree-0.3.2.dist-info/entry_points.txt,sha256=HfntIC1V_COOhGJ-OhtLKH_2vJ1jQy5Hlz8NmcJg4TQ,54
|
|
21
|
+
autosar_calltree-0.3.2.dist-info/top_level.txt,sha256=eusKGYzQfbhwIFDsUYTby40SdMpe95Y9GtR0l1GVIDQ,17
|
|
22
|
+
autosar_calltree-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|