mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
chore: 为 OAuth 回调链路添加墙钟时间日志
定位 19s 延迟:Rust 命令本体 0ms 完成,延迟在 Tauri IPC 往返。 前后端各步骤加 wall= 时间戳,便于比对 invoke 投递 vs 结果返回耗时。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -129,7 +129,9 @@ export function OAuthLogin({ visible, onClose, onSuccess }: OAuthLoginProps) {
|
||||
setLoading(true)
|
||||
const t0 = performance.now()
|
||||
const log = (step: string) =>
|
||||
console.log(`[OAuthLogin] ${step} +${Math.round(performance.now() - t0)}ms`)
|
||||
console.log(
|
||||
`[OAuthLogin] ${step} +${Math.round(performance.now() - t0)}ms (wall=${new Date().toISOString()})`
|
||||
)
|
||||
log("handleOAuthLogin start")
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user