class Vernier::Output::Firefox::Thread
def allocations_table
def allocations_table return nil if !@allocations samples, weights, timestamps = @allocations.values_at(:samples, :weights, :timestamps) return nil if samples.size == 0 size = samples.size timestamps = timestamps.map { _1 / 1_000_000.0 } ret = { "time": timestamps, "className": ["Object"]*size, "typeName": ["JSObject"]*size, "coarseType": ["Object"]*size, "weight": weights, "inNursery": [false] * size, "stack": samples, "length": size } ret end