Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
e9a8e546
Commit
e9a8e546
authored
Dec 24, 2018
by
Deomid Ryabkov
Committed by
Cesanta Bot
Dec 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert Python scripts to Python 3, delete unused ones
CL: none PUBLISHED_FROM=4bbc2175634e20a726dd4b2dadff57f945b261d0
parent
22e602de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
malloc_analyzer.py
src/common/platforms/esp8266/tools/malloc_analyzer.py
+0
-23
No files found.
src/common/platforms/esp8266/tools/malloc_analyzer.py
deleted
100644 → 0
View file @
22e602de
#!/usr/bin/python
# Analyzers output of firmware compiler with -DESP_ENABLE_MALLOC_TRACES
import
re
import
sys
allocs
=
{}
for
l
in
sys
.
stdin
:
m
=
re
.
match
(
r'(ca|ma|re|fr) (\S+)\s*(\S*)\s*(\S*)'
,
l
)
if
not
m
:
continue
op
=
m
.
group
(
1
)
if
op
in
(
'ca'
,
'ma'
):
allocs
[
m
.
group
(
2
)]
=
long
(
m
.
group
(
3
))
else
:
if
m
.
group
(
2
)
in
allocs
:
del
allocs
[
m
.
group
(
2
)]
if
op
==
're'
:
allocs
[
m
.
group
(
3
)]
=
long
(
m
.
group
(
4
))
for
k
,
v
in
sorted
(
allocs
.
iteritems
()):
print
k
,
v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment