Temporal profile computation + JSON serialization