Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uPython-mirror
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
uPython-mirror
Commits
d865f67b
Commit
d865f67b
authored
Feb 20, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/{gc,qstr}: Don't include mem dump code with MEM_INFO disabled.
parent
eaf2e054
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
py/gc.c
py/gc.c
+4
-0
py/qstr.c
py/qstr.c
+1
-1
No files found.
py/gc.c
View file @
d865f67b
...
...
@@ -785,6 +785,8 @@ void *gc_realloc(void *ptr_in, size_t n_bytes, bool allow_move) {
}
#endif // Alternative gc_realloc impl
#if EXTENSIVE_HEAP_PROFILING || MICROPY_PY_MICROPYTHON_MEM_INFO
void
gc_dump_info
(
void
)
{
gc_info_t
info
;
gc_info
(
&
info
);
...
...
@@ -904,6 +906,8 @@ void gc_dump_alloc_table(void) {
GC_EXIT
();
}
#endif // EXTENSIVE_HEAP_PROFILING || MICROPY_PY_MICROPYTHON_MEM_INFO
#if DEBUG_PRINT
void
gc_test
(
void
)
{
mp_uint_t
len
=
500
;
...
...
py/qstr.c
View file @
d865f67b
...
...
@@ -261,6 +261,7 @@ const byte *qstr_data(qstr q, size_t *len) {
return
Q_GET_DATA
(
qd
);
}
#if MICROPY_PY_MICROPYTHON_MEM_INFO
void
qstr_pool_info
(
size_t
*
n_pool
,
size_t
*
n_qstr
,
size_t
*
n_str_data_bytes
,
size_t
*
n_total_bytes
)
{
QSTR_ENTER
();
*
n_pool
=
0
;
...
...
@@ -283,7 +284,6 @@ void qstr_pool_info(size_t *n_pool, size_t *n_qstr, size_t *n_str_data_bytes, si
QSTR_EXIT
();
}
#if MICROPY_PY_MICROPYTHON_MEM_INFO
void
qstr_dump_data
(
void
)
{
QSTR_ENTER
();
for
(
qstr_pool_t
*
pool
=
MP_STATE_VM
(
last_pool
);
pool
!=
NULL
&&
pool
!=
&
CONST_POOL
;
pool
=
pool
->
prev
)
{
...
...
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