mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 11:55:21 +02:00
tools: Add --output-file argument to idf.py size commands
This commit ads the corresponding --output-file option from idf_size.py to idf.py. This is needed because piping the idf.py size output to a file would result in CMake output being present in the file as well.
This commit is contained in:
@@ -191,7 +191,7 @@ Will print app size information including occupied RAM and FLASH and section siz
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
idf.py size
|
||||
idf.py size-components
|
||||
|
||||
Similarly, this will print the same information for each component used in the project.
|
||||
|
||||
@@ -201,7 +201,11 @@ Similarly, this will print the same information for each component used in the p
|
||||
|
||||
Will print size information per source file in the project.
|
||||
|
||||
If you define the ``OUTPUT_FORMAT`` variable as ``csv`` or ``json`` when running CMake (or ``idf.py``), the output will be formatted in the specified format and not as human readable text. See ``idf.py-size`` for more information.
|
||||
Options
|
||||
^^^^^^^
|
||||
|
||||
- ``--format`` specifies the output format with available options: ``text``, ``csv``, ``json``, default being ``text``.
|
||||
- ``--output-file`` optionally specifies the name of the file to print the command output to instead of the standard output.
|
||||
|
||||
Reconfigure the project: reconfigure
|
||||
------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user