module ThreadAnalysisService

Defined in:

services/thread_analysis_service.cr

Class Method Summary

Class Method Detail

def self.key_participants(tuples : Array(NamedTuple), limit : Int32 = 18) : Array(ParticipantInfo) #

Returns key participants in the thread based on object data.


[View source]
def self.notable_branches(tuples : Array(NamedTuple), threshold : Int32 = 5, max_depth : Int32 = 2, limit : Int32 = 10) : Array(BranchInfo) #

Returns notable branches (high-activity subtrees) in the thread.

A "notable branch" is any reply and its descendants (up to max_depth) that form a subtree of more than threshold objects.


[View source]
def self.timeline_histogram(tuples : Array(NamedTuple)) : TimelineHistogram | Nil #

Returns a timeline histogram showing thread activity over time.

Automatically selects appropriate bucket granularity based on thread duration. Uses adaptive outlier detection to exclude stragglers.


[View source]