Skip to content

Commit dc60254

Browse files
Change profile granulatiry depending on chip
1 parent f16097d commit dc60254

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cores/rp2040/gprof_gmon.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@
5858
fraction of text space to allocate for histogram counters here, 1/2
5959
*/
6060
#ifndef HISTFRACTION
61-
#define HISTFRACTION 8
61+
62+
#ifdef PICO_RP2350
63+
#define HISTFRACTION 4 // Every 8 bytes of .text
64+
#else
65+
#define HISTFRACTION 8 // Every 16 bytes of .text
66+
#endif
67+
6268
#endif
6369

6470
/*

0 commit comments

Comments
 (0)