blob: 88fa062a01257863c29597776b570221ef340622 [file] [log] [blame]
SELECT
ts,
lead(ts, 1, ts) OVER (PARTITION BY name ORDER BY ts) - ts AS dur,
value
FROM counter c
INNER JOIN cpu_counter_track t ON t.id = c.track_id
WHERE cpu = 1;