require "#{__dir__}/setup"
# _ { QuickScript::Admin::DashboardScript.new.call } # => "512.51 ms"
# s { QuickScript::Admin::DashboardScript.new.call } # => "<div class=\"columns is-mobile is-multiline\"><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/action-cable-info-script\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[共有] 接続数 (現在) 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=%E5%85%B1%E6%9C%89%E5%B0%86%E6%A3%8B%E7%9B%A4\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[共有] 利用状況 (直近1h) 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/share-board-battle-index\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[共有] 対局数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">2</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=%E3%83%81%E3%83%A3%E3%83%83%E3%83%88\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[共有] 発言数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[ウ検] 検索数 (直近1h) 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></div><div class=\"column is-2\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[ウ検] 検索数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></div><div class=\"column is-2\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">*[ウ検] 取込対局数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">1</div></div></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=%E3%82%A6%E3%82%A9%E3%83%BC%E3%82%BAID%E8%A8%98%E6%86%B6%E6%A1%88%E5%86%85+%E3%82%84%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[ウ検] ID記憶案内 やってみる 0.1s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=%E3%82%A6%E3%82%A9%E3%83%BC%E3%82%BAID%E8%A8%98%E6%86%B6%E6%A1%88%E5%86%85+%E7%B5%B6%E5%AF%BE%E3%82%84%E3%82%89%E3%81%AA%E3%81%84\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[ウ検] ID記憶案内 絶対やらない 0.1s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=Deadlocked\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[例外] Deadlocked 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=RecordNotUnique\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[例外] RecordNotUnique 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/lab/admin/app-log-search?query=KENTO+API\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[KENTO] API 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/admin/sidekiq/morgue\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">死亡ジョブ数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/xy\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[符号の鬼] 記録数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/xy\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[符号の鬼] 挑戦者数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/admin/script/wkbk-dashboard\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[将ドリ] 問題作成数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/admin/script/wkbk-dashboard\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[将ドリ] 問題作成者数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/admin/script/wkbk-dashboard\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[将ドリ] 解いた数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div><div class=\"column is-2\"><a href=\"http://localhost:4000/admin/script/wkbk-dashboard\" target=\"_blank\"><div class=\"box has-text-centered\"><div class=\"is-size-7\">[将ドリ] 解いた人数 0.0s</div><div class=\"has-text-weight-bold is-size-3\">0</div></div></a></div></div>"
QuickScript::Admin::DashboardScript.new.prepare_aggregation_cache # => #<AppLog id: 1953411, level: "info", emoji: "", subject: "[ダッシュボード][事前集計]", body: "|-------------------+------------------|\n| name   ...", process_id: 66089, created_at: "2025-08-03 09:25:38.000000000 +0900">
puts AppLog.last.body
# >> |-------------------+------------------|
# >> | name              | duration         |
# >> |-------------------+------------------|
# >> | [ウ検] 取込対局数 | 0.005664 seconds |
# >> |-------------------+------------------|
