mirror of https://github.com/arendst/Tasmota.git
Show Metrics for ESP32x firmware (#18461)
This commit is contained in:
parent
11a43ea99b
commit
49d5356ea3
|
@ -28,5 +28,11 @@ def bin_map_copy(source, target, env):
|
|||
shutil.move(tasmotapiolib.get_source_map_path(env), map_file)
|
||||
if env["PIOPLATFORM"] == "espressif32":
|
||||
shutil.copy(factory, one_bin_file)
|
||||
|
||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", bin_map_copy)
|
||||
# Print Metrics for firmware using "map" file
|
||||
import esp_idf_size
|
||||
CYAN = '\033[96m'
|
||||
ENDC = '\033[0m'
|
||||
print(CYAN + "=============================================================================================" + ENDC)
|
||||
env.Execute("$PYTHONEXE -m esp_idf_size " + str(map_file.resolve()))
|
||||
print(CYAN + "=============================================================================================" + ENDC)
|
||||
env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", bin_map_copy)
|
||||
|
|
Loading…
Reference in New Issue