Use partitionAllocGetSize when reporting memory associated with JS strings.