mirror of
https://github.com/lana-k/sqliteviz.git
synced 2026-05-06 20:09:18 +08:00
* Build SQLite 3.41.0 * Update pivot_vtab * Add Pearson correlation coefficient function extension, build * Add an easy way to running test locally without Nodejs * Use RSS sum to pick top2 processes for the report * Try previous Ubuntu LTS as a workaround for Firefox worker not starting
14 lines
305 B
SQL
14 lines
305 B
SQL
WITH one_time_pid_condition AS (
|
|
SELECT stat_pid
|
|
FROM record
|
|
GROUP BY 1
|
|
ORDER BY SUM(stat_rss) DESC
|
|
LIMIT 2
|
|
)
|
|
SELECT
|
|
ts,
|
|
stat_pid pid,
|
|
stat_rss / 1024.0 / 1024 * (SELECT value FROM meta WHERE key = 'page_size') value
|
|
FROM record
|
|
JOIN one_time_pid_condition USING(stat_pid)
|