summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-12 21:52:34 +0100
committerRory& <root@rory.gay>2026-03-12 21:52:34 +0100
commit2f1c0ba2d4673dc1032fc7492e7c76ae03a109cb (patch)
tree2249bf3059cfc71280e40e5c884fb897e4eb47d0
parent.idea: exclude cs bin dirs from analysis (diff)
downloadserver-ts-2f1c0ba2d4673dc1032fc7492e7c76ae03a109cb.tar.xz
Gateway: include entity counts in trace names
-rw-r--r--src/gateway/opcodes/Identify.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index 9b2620e7..d5b47dcd 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -376,23 +376,23 @@ export async function onIdentify(this: WebSocket, data: Payload) { //channels g.channels = memberGuildChannels.filter((c) => c.guild_id === m.guild_id); - trace.calls.push("filterChannels", { micros: sw.getElapsedAndReset().totalMicroseconds }); + trace.calls.push(`filterChannels(${g.channels.length}/${memberGuildChannels.length})`, { micros: sw.getElapsedAndReset().totalMicroseconds }); //emojis g.emojis = memberGuildEmojis.filter((e) => e.guild_id === m.guild_id); - trace.calls.push("filterEmojis", { micros: sw.getElapsedAndReset().totalMicroseconds }); + trace.calls.push(`filterEmojis(${g.emojis.length}/${memberGuildEmojis.length})`, { micros: sw.getElapsedAndReset().totalMicroseconds }); //roles g.roles = memberGuildRoles.filter((r) => r.guild_id === m.guild_id); - trace.calls.push("filterRoles", { micros: sw.getElapsedAndReset().totalMicroseconds }); + trace.calls.push(`filterRoles(${g.roles.length}/${memberGuildRoles.length})`, { micros: sw.getElapsedAndReset().totalMicroseconds }); //stickers g.stickers = memberGuildStickers.filter((s) => s.guild_id === m.guild_id); - trace.calls.push("filterStickers", { micros: sw.getElapsedAndReset().totalMicroseconds }); + trace.calls.push(`filterStickers(${g.stickers.length}/${memberGuildStickers.length})`, { micros: sw.getElapsedAndReset().totalMicroseconds }); //voice states g.voice_states = memberGuildVoiceStates.filter((v) => v.guild_id === m.guild_id); - trace.calls.push("filterVoiceStates", { micros: sw.getElapsedAndReset().totalMicroseconds }); + trace.calls.push(`filterVoiceStates(${g.voice_states.length}/${memberGuildVoiceStates.length})`, { micros: sw.getElapsedAndReset().totalMicroseconds }); //total trace.micros = totalSw.elapsed().totalMicroseconds;