Skip to content

Instantly share code, notes, and snippets.

@petejohanson
Created June 17, 2022 20:51
Show Gist options
  • Save petejohanson/1cf37657221ca2a0a163becd9bc38154 to your computer and use it in GitHub Desktop.
Save petejohanson/1cf37657221ca2a0a163becd9bc38154 to your computer and use it in GitHub Desktop.
-- west build: running target ram_report
[1/12] Generating linker_zephyr_pre0.cmd
[2/12] Generating linker_zephyr_pre1.cmd
[3/12] Linking C executable zephyr/zephyr_pre0.elf
[4/12] Generating dev_handles.c
[5/12] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[6/12] Linking C executable zephyr/zephyr_pre1.elf
[7/12] Generating linker.cmd
[8/12] Generating isr_tables.c, isrList.bin
[9/12] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[10/12] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[11/12] Linking C executable zephyr/zmk.elf
Memory region Used Size Region Size %age Used
FLASH: 37776 B 128 KB 28.82%
SRAM: 10952 B 16 KB 66.85%
IDT_LIST: 0 GB 2 KB 0.00%
[11/12] cd /home/peter/git/zmk/app/build/ferris && /usr/bin/python3.10 /home/peter/git/zmk/zephyr/scripts/footprint/size_report -k /home/peter/git/zmk/app/build/ferris/zephyr/zmk.elf -z /home/peter/git/zmk/zephyr -o /home/peter/git/zmk/app/build/ferris --workspace=/home/peter/git/zmk -d 99 ram
Path Size %
==============================================================================================================
Root 14844 100.00%
├── (hidden) 704 4.74%
├── (no paths) 2807 18.91%
│ ├── AHBPrescTable 16 0.11%
│ ├── APBPrescTable 8 0.05%
│ ├── SystemCoreClock 4 0.03%
│ ├── _kernel 36 0.24%
│ ├── _sw_isr_table 256 1.72%
│ ├── init_first_run.0 1 0.01%
│ ├── k_sys_work_q 144 0.97%
│ ├── levels.0 20 0.13%
│ ├── sn.0 18 0.12%
│ ├── z_idle_threads 112 0.75%
│ ├── z_interrupt_stacks 2048 13.80%
│ ├── z_main_thread 112 0.75%
│ ├── zmk_event_zmk_activity_state_changed 4 0.03%
│ ├── zmk_event_zmk_endpoint_selection_changed 4 0.03%
│ ├── zmk_event_zmk_keycode_state_changed 4 0.03%
│ ├── zmk_event_zmk_layer_state_changed 4 0.03%
│ ├── zmk_event_zmk_modifiers_state_changed 4 0.03%
│ ├── zmk_event_zmk_position_state_changed 4 0.03%
│ ├── zmk_event_zmk_sensor_event 4 0.03%
│ └── zmk_event_zmk_usb_conn_state_changed 4 0.03%
├── WORKSPACE 4706 31.70%
│ └── app 4706 31.70%
│ ├── drivers 632 4.26%
│ │ ├── gpio 100 0.67%
│ │ │ └── gpio_mcp23017.c 100 0.67%
│ │ │ ├── __devstate_dts_ord_47 4 0.03%
│ │ │ ├── api_table 36 0.24%
│ │ │ ├── mcp23017_0_config 12 0.08%
│ │ │ └── mcp23017_0_drvdata 48 0.32%
│ │ └── kscan 532 3.58%
│ │ ├── kscan_composite.c 40 0.27%
│ │ │ ├── __devstate_dts_ord_33 4 0.03%
│ │ │ ├── kscan_composite_children 16 0.11%
│ │ │ ├── kscan_composite_data 8 0.05%
│ │ │ └── mock_driver_api 12 0.08%
│ │ └── kscan_gpio_matrix.c 492 3.31%
│ │ ├── __devstate_dts_ord_41 4 0.03%
│ │ ├── __devstate_dts_ord_48 4 0.03%
│ │ ├── kscan_matrix_api 12 0.08%
│ │ ├── kscan_matrix_cols_0 40 0.27%
│ │ ├── kscan_matrix_cols_1 40 0.27%
│ │ ├── kscan_matrix_config_0 52 0.35%
│ │ ├── kscan_matrix_config_1 52 0.35%
│ │ ├── kscan_matrix_data_0 72 0.49%
│ │ ├── kscan_matrix_data_1 72 0.49%
│ │ ├── kscan_matrix_rows_0 32 0.22%
│ │ ├── kscan_matrix_rows_1 32 0.22%
│ │ ├── kscan_matrix_state_0 40 0.27%
│ │ └── kscan_matrix_state_1 40 0.27%
│ ├── include 76 0.51%
│ │ └── zmk 76 0.51%
│ │ └── hid.h 76 0.51%
│ │ └── zmk_hid_report_desc 76 0.51%
│ └── src 3998 26.93%
│ ├── activity.c 97 0.65%
│ │ ├── activity_last_uptime 4 0.03%
│ │ ├── activity_state 1 0.01%
│ │ ├── activity_timer 56 0.38%
│ │ ├── activity_work 16 0.11%
│ │ ├── zmk_event_sub_activityzmk_position_state_changed 8 0.05%
│ │ ├── zmk_event_sub_activityzmk_sensor_event 8 0.05%
│ │ └── zmk_listener_activity 4 0.03%
│ ├── behaviors 1288 8.68%
│ │ ├── behavior_ext_power.c 24 0.16%
│ │ │ ├── __devstate_dts_ord_6 4 0.03%
│ │ │ └── behavior_ext_power_driver_api 20 0.13%
│ │ ├── behavior_hold_tap.c 1156 7.79%
│ │ │ ├── __devstate_dts_ord_25 4 0.03%
│ │ │ ├── __devstate_dts_ord_26 4 0.03%
│ │ │ ├── active_hold_taps 880 5.93%
│ │ │ ├── behavior_hold_tap_config_0 24 0.16%
│ │ │ ├── behavior_hold_tap_config_1 24 0.16%
│ │ │ ├── behavior_hold_tap_driver_api 20 0.13%
│ │ │ ├── captured_events 160 1.08%
│ │ │ ├── last_tapped 16 0.11%
│ │ │ ├── undecided_hold_tap 4 0.03%
│ │ │ ├── zmk_event_sub_behavior_hold_tapzmk_keycode_state_changed 8 0.05%
│ │ │ ├── zmk_event_sub_behavior_hold_tapzmk_position_state_changed 8 0.05%
│ │ │ └── zmk_listener_behavior_hold_tap 4 0.03%
│ │ ├── behavior_key_press.c 24 0.16%
│ │ │ ├── __devstate_dts_ord_23 4 0.03%
│ │ │ └── behavior_key_press_driver_api 20 0.13%
│ │ ├── behavior_momentary_layer.c 24 0.16%
│ │ │ ├── __devstate_dts_ord_24 4 0.03%
│ │ │ └── behavior_mo_driver_api 20 0.13%
│ │ ├── behavior_reset.c 36 0.24%
│ │ │ ├── __devstate_dts_ord_7 4 0.03%
│ │ │ ├── __devstate_dts_ord_8 4 0.03%
│ │ │ ├── behavior_reset_config_0 4 0.03%
│ │ │ ├── behavior_reset_config_1 4 0.03%
│ │ │ └── behavior_reset_driver_api 20 0.13%
│ │ └── behavior_transparent.c 24 0.16%
│ │ ├── __devstate_dts_ord_28 4 0.03%
│ │ └── behavior_transparent_driver_api 20 0.13%
│ ├── endpoints.c 13 0.09%
│ │ ├── current_endpoint 1 0.01%
│ │ ├── zmk_event_sub_endpoint_listenerzmk_usb_conn_state_changed 8 0.05%
│ │ └── zmk_listener_endpoint_listener 4 0.03%
│ ├── events 32 0.22%
│ │ ├── activity_state_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_activity_state_changed 4 0.03%
│ │ ├── endpoint_selection_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_endpoint_selection_changed 4 0.03%
│ │ ├── keycode_state_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_keycode_state_changed 4 0.03%
│ │ ├── layer_state_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_layer_state_changed 4 0.03%
│ │ ├── modifiers_state_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_modifiers_state_changed 4 0.03%
│ │ ├── position_state_changed.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_position_state_changed 4 0.03%
│ │ ├── sensor_event.c 4 0.03%
│ │ │ └── zmk_event_ref_zmk_sensor_event 4 0.03%
│ │ └── usb_conn_state_changed.c 4 0.03%
│ │ └── zmk_event_ref_zmk_usb_conn_state_changed 4 0.03%
│ ├── hid.c 55 0.37%
│ │ ├── consumer_report 13 0.09%
│ │ ├── explicit_modifier_counts 32 0.22%
│ │ ├── explicit_modifiers 1 0.01%
│ │ └── keyboard_report 9 0.06%
│ ├── hid_listener.c 12 0.08%
│ │ ├── zmk_event_sub_hid_listenerzmk_keycode_state_changed 8 0.05%
│ │ └── zmk_listener_hid_listener 4 0.03%
│ ├── keymap.c 2192 14.77%
│ │ ├── _zmk_keymap_layer_state 4 0.03%
│ │ ├── zmk_event_sub_keymapzmk_position_state_changed 8 0.05%
│ │ ├── zmk_keymap 2040 13.74%
│ │ ├── zmk_keymap_active_behavior_layer 136 0.92%
│ │ └── zmk_listener_keymap 4 0.03%
│ ├── kscan.c 104 0.70%
│ │ ├── _k_fifo_buf_zmk_kscan_msgq 48 0.32%
│ │ ├── msg_processor 16 0.11%
│ │ └── zmk_kscan_msgq 40 0.27%
│ ├── matrix_transform.c 148 1.00%
│ │ └── transform 148 1.00%
│ ├── usb.c 17 0.11%
│ │ ├── usb_status 1 0.01%
│ │ └── usb_status_notifier_work 16 0.11%
│ └── usb_hid.c 40 0.27%
│ ├── hid_dev 4 0.03%
│ ├── hid_sem 16 0.11%
│ └── ops 20 0.13%
└── ZEPHYR_BASE 6627 44.64%
├── drivers 2528 17.03%
│ ├── clock_control 28 0.19%
│ │ └── clock_stm32_ll_common.c 28 0.19%
│ │ ├── __devstate_dts_ord_38 4 0.03%
│ │ └── stm32_clock_control_api 24 0.16%
│ ├── gpio 276 1.86%
│ │ └── gpio_stm32.c 276 1.86%
│ │ ├── __devstate_dts_ord_39 4 0.03%
│ │ ├── __devstate_dts_ord_40 4 0.03%
│ │ ├── __devstate_dts_ord_95 4 0.03%
│ │ ├── __devstate_dts_ord_96 4 0.03%
│ │ ├── __devstate_dts_ord_97 4 0.03%
│ │ ├── __devstate_dts_ord_98 4 0.03%
│ │ ├── gpio_stm32_cfg_a 20 0.13%
│ │ ├── gpio_stm32_cfg_b 20 0.13%
│ │ ├── gpio_stm32_cfg_c 20 0.13%
│ │ ├── gpio_stm32_cfg_d 20 0.13%
│ │ ├── gpio_stm32_cfg_e 20 0.13%
│ │ ├── gpio_stm32_cfg_f 20 0.13%
│ │ ├── gpio_stm32_data_a 16 0.11%
│ │ ├── gpio_stm32_data_b 16 0.11%
│ │ ├── gpio_stm32_data_c 16 0.11%
│ │ ├── gpio_stm32_data_d 16 0.11%
│ │ ├── gpio_stm32_data_e 16 0.11%
│ │ ├── gpio_stm32_data_f 16 0.11%
│ │ └── gpio_stm32_driver 36 0.24%
│ ├── i2c 156 1.05%
│ │ └── i2c_ll_stm32.c 156 1.05%
│ │ ├── __devstate_dts_ord_46 4 0.03%
│ │ ├── __pinctrl_dev_config__device_dts_ord_46 8 0.05%
│ │ ├── __pinctrl_state_pins_0__device_dts_ord_46 16 0.11%
│ │ ├── __pinctrl_states__device_dts_ord_46 8 0.05%
│ │ ├── api_funcs 24 0.16%
│ │ ├── i2c_stm32_cfg_i2c2 32 0.22%
│ │ └── i2c_stm32_dev_data_i2c2 64 0.43%
│ ├── interrupt_controller 148 1.00%
│ │ └── intc_exti_stm32.c 148 1.00%
│ │ ├── __devstate_dts_ord_55 4 0.03%
│ │ ├── exti_data 128 0.86%
│ │ └── exti_irq_table 16 0.11%
│ ├── pinctrl 44 0.30%
│ │ └── pinctrl_stm32.c 44 0.30%
│ │ └── gpio_ports 44 0.30%
│ ├── timer 16 0.11%
│ │ └── cortex_m_systick.c 16 0.11%
│ │ ├── announced_cycles 4 0.03%
│ │ ├── cycle_count 4 0.03%
│ │ ├── last_load 4 0.03%
│ │ └── overflow_cyc 4 0.03%
│ └── usb 1860 12.53%
│ └── device 1860 12.53%
│ └── usb_dc_stm32.c 1860 12.53%
│ ├── __pinctrl_dev_config__device_dts_ord_64 8 0.05%
│ └── usb_dc_stm32_state 1852 12.48%
├── kernel 3393 22.86%
│ ├── errno.c 4 0.03%
│ │ └── _k_neg_eagain 4 0.03%
│ ├── init.c 1281 8.63%
│ │ ├── z_idle_stacks 256 1.72%
│ │ ├── z_main_stack 1024 6.90%
│ │ └── z_sys_post_kernel 1 0.01%
│ ├── mempool.c 1044 7.03%
│ │ ├── _system_heap 20 0.13%
│ │ └── kheap__system_heap 1024 6.90%
│ ├── sched.c 12 0.08%
│ │ ├── pending_current 4 0.03%
│ │ ├── slice_max_prio 4 0.03%
│ │ └── slice_time 4 0.03%
│ ├── system_work_q.c 1024 6.90%
│ │ └── sys_work_q_stack 1024 6.90%
│ ├── timeout.c 20 0.13%
│ │ ├── announce_remaining 4 0.03%
│ │ ├── curr_tick 8 0.05%
│ │ └── timeout_list 8 0.05%
│ └── work.c 8 0.05%
│ └── pending_cancels 8 0.05%
├── lib 4 0.03%
│ └── os 4 0.03%
│ └── printk.c 4 0.03%
│ └── _char_out 4 0.03%
└── subsys 702 4.73%
└── usb 702 4.73%
├── class 109 0.73%
│ └── hid 109 0.73%
│ └── core.c 109 0.73%
│ ├── __devstate_usb_hid_device_0 4 0.03%
│ ├── hid_api 4 0.03%
│ ├── hid_cfg_0 25 0.17%
│ ├── hid_config_0 36 0.24%
│ ├── hid_ep_data_0 8 0.05%
│ ├── usb_hid_dev_data_0 24 0.16%
│ └── usb_hid_devlist 8 0.05%
├── usb_descriptor.c 121 0.82%
│ ├── common_desc 27 0.18%
│ ├── string_descr 92 0.62%
│ └── term_descr 2 0.01%
├── usb_device.c 216 1.46%
│ ├── usb_dev 196 1.32%
│ └── usb_enable_lock 20 0.13%
└── usb_transfer.c 256 1.72%
└── ut_data 256 1.72%
==============================================================================================================
14844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment