Skip to content

Commit

Permalink
RUM-5553: Create Benchmark module to collect performance metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ambushwork committed Jul 24, 2024
1 parent 99068f2 commit 5f8579a
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
1 change: 1 addition & 0 deletions benchmark/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
55 changes: 55 additions & 0 deletions benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/

import com.datadog.gradle.config.AndroidConfig
import com.datadog.gradle.config.dependencyUpdateConfig
import com.datadog.gradle.config.java17
import com.datadog.gradle.config.junitConfig
import com.datadog.gradle.config.kotlinConfig

plugins {
id("com.android.library")
kotlin("android")
id("com.github.ben-manes.versions")
}

android {
defaultConfig {
compileSdk = AndroidConfig.TARGET_SDK
minSdk = AndroidConfig.MIN_SDK
}
namespace = "com.datadog.benchmark"
compileOptions {
java17()
}
}

dependencies {

implementation(libs.kotlin)
implementation(libs.okHttp)
api(libs.openTelemetrySdk)
api(libs.openTelemetryApi)
implementation(libs.gson)
compileOnly(libs.detektApi)
testImplementation(project(":tools:unit")) {
attributes {
attribute(
com.android.build.api.attributes.ProductFlavorAttr.of("platform"),
objects.named("jvm")
)
}
}

testImplementation(libs.bundles.jUnit5)
testImplementation(libs.bundles.testTools)
testImplementation(libs.detektTest)
testImplementation(libs.robolectric)
}

kotlinConfig()
junitConfig()
dependencyUpdateConfig()
6 changes: 3 additions & 3 deletions features/dd-sdk-android-trace-otel/transitiveDependencies
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Dependencies List

androidx.annotation:annotation:1.3.0 : 30 Kb
io.opentelemetry:opentelemetry-api:1.4.0 : 78 Kb
io.opentelemetry:opentelemetry-context:1.4.0 : 42 Kb
io.opentelemetry:opentelemetry-api:1.40.0 : 138 Kb
io.opentelemetry:opentelemetry-context:1.40.0 : 46 Kb
org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22 : 216 Kb
org.jetbrains.kotlin:kotlin-stdlib:1.8.22 : 1631 Kb
org.jetbrains:annotations:13.0 : 17 Kb

Total transitive dependencies size : 2017 Kb
Total transitive dependencies size : 2 Mb

1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ ktorGson = { module = "io.ktor:ktor-gson", version.ref = "ktor" }
# Otel
jctools = { module = "org.jctools:jctools-core", version.ref = "jctools" }
openTelemetryApi = { module = "io.opentelemetry:opentelemetry-api", version.ref = "openTelemetry" }
openTelemetrySdk = { module = "io.opentelemetry:opentelemetry-sdk", version.ref = "openTelemetry" }
re2j = { module = "com.google.re2j:re2j", version.ref = "re2j" }

[bundles]
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ include(":tools:unit")
include(":tools:noopfactory")
include(":tools:javabackport")
include(":tools:lint")
include(":benchmark")

0 comments on commit 5f8579a

Please sign in to comment.