Skip to content

Commit

Permalink
style: apply ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
dsa28s committed Feb 2, 2023
1 parent 2a0881e commit de27b61
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 Dora Lee
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.sanghun.compose.video.benchmark

import androidx.benchmark.macro.BaselineProfileMode
Expand All @@ -10,7 +25,6 @@ import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith


@RunWith(AndroidJUnit4::class)
class BaselineProfileBenchmark {

Expand All @@ -26,8 +40,8 @@ class BaselineProfileBenchmark {
fun startupBaselineProfile() {
startup(
CompilationMode.Partial(
baselineProfileMode = BaselineProfileMode.Require
)
baselineProfileMode = BaselineProfileMode.Require,
),
)
}

Expand All @@ -37,7 +51,7 @@ class BaselineProfileBenchmark {
metrics = listOf(StartupTimingMetric()),
iterations = 10,
startupMode = StartupMode.COLD,
compilationMode = compilationMode
compilationMode = compilationMode,
) {
pressHome()
startActivityAndWait()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 Dora Lee
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.sanghun.compose.video.benchmark

import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
Expand All @@ -7,7 +22,6 @@ import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith


@OptIn(ExperimentalBaselineProfilesApi::class)
@RunWith(AndroidJUnit4::class)
class BaselineProfileGenerator {
Expand All @@ -18,7 +32,7 @@ class BaselineProfileGenerator {
@Test
fun startup() {
baselineProfileRule.collectBaselineProfile(
packageName = "io.sanghun.compose.video.sample"
packageName = "io.sanghun.compose.video.sample",
) {
pressHome()
startActivityAndWait()
Expand Down

0 comments on commit de27b61

Please sign in to comment.