func withBuildStep()

in Sources/XCMetricsClient/Log Management/Builders.swift [154:170]


    func withBuildStep(_ buildStep: BuildStep) -> StepBuilder {
        stepBuild.identifier = buildStep.identifier
        stepBuild.title = buildStep.title
        stepBuild.signature = buildStep.signature
        stepBuild.type = buildStep.detailStepType.rawValue
        stepBuild.architecture = buildStep.architecture
        stepBuild.documentURL = buildStep.documentURL
        stepBuild.startTimestamp = Int64(round(buildStep.startTimestamp))
        stepBuild.endTimestamp = Int64(round(buildStep.endTimestamp))
        stepBuild.startTimestampMicroseconds = buildStep.startTimestamp
        stepBuild.endTimestampMicroseconds = buildStep.endTimestamp
        stepBuild.duration = buildStep.duration.roundToDecimal(9)
        stepBuild.warningCount = Int32(buildStep.warningCount)
        stepBuild.errorCount = Int32(buildStep.errorCount)
        stepBuild.fetchedFromCache = buildStep.fetchedFromCache
        return self
    }