Remove operations tracer from compile() interface
This commit is contained in:
+1
-2
@@ -140,8 +140,7 @@ interface CompileService : Remote {
|
||||
targetPlatform: TargetPlatform,
|
||||
compilerArguments: CommonCompilerArguments,
|
||||
additionalCompilerArguments: AdditionalCompilerArguments,
|
||||
servicesFacade: CompilerServicesFacadeBase,
|
||||
operationsTracer: RemoteOperationsTracer?
|
||||
servicesFacade: CompilerServicesFacadeBase
|
||||
): CallResult<Int>
|
||||
|
||||
@Throws(RemoteException::class)
|
||||
|
||||
@@ -327,8 +327,7 @@ class CompileServiceImpl(
|
||||
targetPlatform: CompileService.TargetPlatform,
|
||||
compilerArguments: CommonCompilerArguments,
|
||||
additionalCompilerArguments: AdditionalCompilerArguments,
|
||||
servicesFacade: CompilerServicesFacadeBase,
|
||||
operationsTracer: RemoteOperationsTracer?
|
||||
servicesFacade: CompilerServicesFacadeBase
|
||||
): CompileService.CallResult<Int> {
|
||||
val messageCollector = CompileServicesFacadeMessageCollector(servicesFacade, additionalCompilerArguments)
|
||||
val serviceReporter = CompileServiceReporterImpl(servicesFacade, additionalCompilerArguments)
|
||||
@@ -337,13 +336,13 @@ class CompileServiceImpl(
|
||||
CompileService.CompilerMode.JPS_COMPILER -> {
|
||||
val jpsServicesFacade = servicesFacade as JpsCompilerServicesFacade
|
||||
|
||||
doCompile(sessionId, serviceReporter, operationsTracer) { eventManger, profiler ->
|
||||
doCompile(sessionId, serviceReporter, tracer = null) { eventManger, profiler ->
|
||||
val services = createCompileServices(jpsServicesFacade, eventManger, profiler)
|
||||
execCompiler(targetPlatform, services, compilerArguments, messageCollector)
|
||||
}
|
||||
}
|
||||
CompileService.CompilerMode.NON_INCREMENTAL_COMPILER -> {
|
||||
doCompile(sessionId, serviceReporter, operationsTracer) { eventManger, profiler ->
|
||||
doCompile(sessionId, serviceReporter, tracer = null) { eventManger, profiler ->
|
||||
execCompiler(targetPlatform, Services.EMPTY, compilerArguments, messageCollector)
|
||||
}
|
||||
}
|
||||
@@ -357,7 +356,7 @@ class CompileServiceImpl(
|
||||
val gradleIncrementalServicesFacade = servicesFacade as IncrementalCompilerServicesFacade
|
||||
|
||||
withIC {
|
||||
doCompile(sessionId, serviceReporter, operationsTracer) { eventManger, profiler ->
|
||||
doCompile(sessionId, serviceReporter, tracer = null) { eventManger, profiler ->
|
||||
execIncrementalCompiler(k2jvmArgs, gradleIncrementalArgs, gradleIncrementalServicesFacade, messageCollector)
|
||||
}
|
||||
}
|
||||
@@ -678,11 +677,11 @@ class CompileServiceImpl(
|
||||
|
||||
private fun doCompile(sessionId: Int,
|
||||
compileServiceReporter: CompileServiceReporter,
|
||||
operationsTracer: RemoteOperationsTracer?,
|
||||
tracer: RemoteOperationsTracer?,
|
||||
body: (EventManger, Profiler) -> ExitCode): CompileService.CallResult<Int> =
|
||||
ifAlive {
|
||||
withValidClientOrSessionProxy(sessionId) { session ->
|
||||
operationsTracer?.before("compile")
|
||||
tracer?.before("compile")
|
||||
val rpcProfiler = if (daemonOptions.reportPerf) WallAndThreadTotalProfiler() else DummyProfiler()
|
||||
val eventManger = EventMangerImpl()
|
||||
try {
|
||||
@@ -693,7 +692,7 @@ class CompileServiceImpl(
|
||||
}
|
||||
finally {
|
||||
eventManger.fireCompilationFinished()
|
||||
operationsTracer?.after("compile")
|
||||
tracer?.after("compile")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user