Skip to content

Commit

Permalink
Rename benchmarks enablement methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed Aug 26, 2024
1 parent 0193c1a commit 296ed7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions BenchmarkTests/Benchmarks/Sources/Benchmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public enum Benchmarks {
/// Configure OpenTelemetry metrics meter and start measuring Memory.
///
/// - Parameter configuration: The Benchmark configuration.
public static func metrics(with configuration: Configuration) {
public static func enableMetrics(with configuration: Configuration) {
let loggerProvider = LoggerProviderBuilder()
.build()

Expand Down Expand Up @@ -157,7 +157,7 @@ public enum Benchmarks {
/// Configure and register a OpenTelemetry Tracer.
///
/// - Parameter configuration: The Benchmark configuration.
public static func tracer(with configuration: Configuration) {
public static func enableTracer(with configuration: Configuration) {
let exporterConfiguration = ExporterConfiguration(
serviceName: configuration.context.applicationIdentifier,
resource: "Benchmark Tracer",
Expand Down
4 changes: 2 additions & 2 deletions BenchmarkTests/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
switch run {
case .baseline, .instrumented:
// measure metrics during baseline and metrics runs
Benchmarks.metrics(
Benchmarks.enableMetrics(
with: Benchmarks.Configuration(
info: applicationInfo,
scenario: scenario,
Expand All @@ -34,7 +34,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
)
case .profiling:
// Collect traces during profiling run
Benchmarks.tracer(
Benchmarks.enableTracer(
with: Benchmarks.Configuration(
info: applicationInfo,
scenario: scenario,
Expand Down

0 comments on commit 296ed7b

Please sign in to comment.