Rearrange the bools in prof_tdata_t to save some bytes.

This lowered the sizeof(prof_tdata_t) from 200 to 192 which is a round size
class.  Afterwards the tdata_t size remain unchanged with the last commit, which
effectively inlined the storage of thread names for free.
This commit is contained in:
Qi Wang 2023-03-28 20:09:41 -07:00 committed by Qi Wang
parent ce0b7ab6c8
commit e62aa478c7

View File

@ -156,9 +156,6 @@ struct prof_tdata_s {
*/ */
uint64_t thr_discrim; uint64_t thr_discrim;
bool attached;
bool expired;
rb_node(prof_tdata_t) tdata_link; rb_node(prof_tdata_t) tdata_link;
/* /*
@ -198,6 +195,9 @@ struct prof_tdata_s {
*/ */
bool active; bool active;
bool attached;
bool expired;
/* Temporary storage for summation during dump. */ /* Temporary storage for summation during dump. */
prof_cnt_t cnt_summed; prof_cnt_t cnt_summed;