Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CoverageRange(val startOffset: Int, val endOffset: Int, val count: Int)

Coverage data for a source range.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the ProfilerDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the ProfilerDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class FunctionCoverage(val functionName: String, val ranges: List<CoverageRange>, val isBlockCoverage: Boolean)

Coverage data for a JavaScript function.

Link copied to clipboard
@Serializable
data class GetBestEffortCoverageResponse(val result: List<ScriptCoverage>)

Response type for the ProfilerDomain.getBestEffortCoverage command.

Link copied to clipboard
@Serializable
data class PositionTickInfo(val line: Int, val ticks: Int)

Specifies a number of samples attributed to a certain source position.

Link copied to clipboard
@Serializable
data class Profile(val nodes: List<ProfileNode>, val startTime: Double, val endTime: Double, val samples: List<Int>? = null, val timeDeltas: List<Int>? = null)

Profile.

Link copied to clipboard
@Serializable
data class ProfileNode(val id: Int, val callFrame: CallFrame, val hitCount: Int? = null, val children: List<Int>? = null, val deoptReason: String? = null, val positionTicks: List<PositionTickInfo>? = null)

Profile node. Holds callsite information, execution statistics and child nodes.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class ScriptCoverage(val scriptId: ScriptId, val url: String, val functions: List<FunctionCoverage>)

Coverage data for a JavaScript script.

Link copied to clipboard
@Serializable
data class SetSamplingIntervalRequest(val interval: Int)

Request object containing input parameters for the ProfilerDomain.setSamplingInterval command.

Link copied to clipboard
@Serializable
object SetSamplingIntervalResponse

A dummy response object for the ProfilerDomain.setSamplingInterval command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class StartPreciseCoverageRequest(val callCount: Boolean? = null, val detailed: Boolean? = null, val allowTriggeredUpdates: Boolean? = null)

Request object containing input parameters for the ProfilerDomain.startPreciseCoverage command.

Link copied to clipboard
@Serializable
data class StartPreciseCoverageResponse(val timestamp: Double)

Response type for the ProfilerDomain.startPreciseCoverage command.

Link copied to clipboard
@Serializable
object StartResponse

A dummy response object for the ProfilerDomain.start command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object StopPreciseCoverageResponse

A dummy response object for the ProfilerDomain.stopPreciseCoverage command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class StopResponse(val profile: Profile)

Response type for the ProfilerDomain.stop command.

Link copied to clipboard
@Serializable
data class TakePreciseCoverageResponse(val result: List<ScriptCoverage>, val timestamp: Double)

Response type for the ProfilerDomain.takePreciseCoverage command.