summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYan Wang <yawanng@google.com>2019-10-23 13:17:32 -0700
committerYan Wang <yawanng@google.com>2019-10-30 14:06:27 -0700
commitc1a66b1e86b85d29b9abf94133135a4d83b50094 (patch)
tree13d7bf486eea5788fdc7702c05010e95839a7e49 /tests
parent3b7315b951eb96d4daa54ca8667f434569e1ab14 (diff)
downloadplatform_system_iorap-c1a66b1e86b85d29b9abf94133135a4d83b50094.tar.gz
platform_system_iorap-c1a66b1e86b85d29b9abf94133135a4d83b50094.tar.bz2
platform_system_iorap-c1a66b1e86b85d29b9abf94133135a4d83b50094.zip
compiler: Fix the relative_timestamp.
Change base of relative_timestamp from 0 to the first event timestamp. Bug: 142896844 Test: atest --host iorapd-host-tests Change-Id: I4b12bc286943b130263ff61098702ca963a5ae62
Diffstat (limited to 'tests')
-rw-r--r--tests/src/compiler/compiler_test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/src/compiler/compiler_test.cc b/tests/src/compiler/compiler_test.cc
index 46c15fc..b1ef50c 100644
--- a/tests/src/compiler/compiler_test.cc
+++ b/tests/src/compiler/compiler_test.cc
@@ -72,7 +72,7 @@ TEST_F(CompilerTest, SingleTraceDuration) {
EXPECT_EQ(result, true);
EXPECT_EQ(content, "{filename:\"/product/app/CalculatorGooglePrebuilt/"
"CalculatorGooglePrebuilt.apk\","
- "timestamp:260390390001566,"
+ "timestamp:7641303,"
"add_to_page_cache:1,"
"index:540}\n");
}
@@ -95,15 +95,15 @@ TEST_F(CompilerTest, MultiTraceDuration) {
std::istreambuf_iterator<char>()};
EXPECT_EQ(result, true);
- EXPECT_EQ(content, "{filename:\"/product/app/CalculatorGooglePrebuilt/"
- "CalculatorGooglePrebuilt.apk\","
- "timestamp:260390390001566,"
+ EXPECT_EQ(content, "{filename:\"/apex/com.android.art/lib64/libperfetto_hprof.so\","
+ "timestamp:4388958,"
"add_to_page_cache:1,"
- "index:540}\n"
- "{filename:\"/apex/com.android.art/lib64/libperfetto_hprof.so\","
- "timestamp:333215840452006,"
+ "index:227}\n"
+ "{filename:\"/product/app/CalculatorGooglePrebuilt/"
+ "CalculatorGooglePrebuilt.apk\","
+ "timestamp:7641303,"
"add_to_page_cache:1,"
- "index:227}\n");
+ "index:540}\n");
}
TEST_F(CompilerTest, NoTraceDuration) {