collect Async
Asynchronous method used to collect profiling information and callback function to process the profiling data
Parameters
callback
: (String) -> Unit(Void in Kotlin)
time In Millis
: Uint32, default 15000(15 seconds), once timeout, callback triggered regardless if profiling is done
Example
func dwnApiCall(_ fp: String) {
print("Got FP String: \(fp)")
}
let sdk = DwnProfilingSDK(config)
sdk.start(config)
val callback : (String) -> Unit = { fp: String -> dwnApiCall(fp) }
sdk.collectAsync(callback)
Content copied to clipboard