Skip to content

Commit

Permalink
notest
Browse files Browse the repository at this point in the history
Differential Revision: D58215474
  • Loading branch information
Matt Blagden authored and facebook-github-bot committed Jun 5, 2024
1 parent adfc228 commit c15b99e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions unittests/VMRuntime/SamplingProfilerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,33 +64,33 @@ TEST(SamplingProfilerTest, MultipleProfilers) {
}
#endif

TEST(SamplingProfilerTest, RegisterDifferentThread) {
constexpr uint32_t kThreadCount = 3;
// TEST(SamplingProfilerTest, RegisterDifferentThread) {
// constexpr uint32_t kThreadCount = 3;

auto rt = makeRuntime(withSamplingProfilerEnabled);
rt->samplingProfiler->enable();
// auto rt = makeRuntime(withSamplingProfilerEnabled);
// rt->samplingProfiler->enable();

for (uint32_t threadNumber = 0; threadNumber < kThreadCount; ++threadNumber) {
std::thread([&]() {
rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
}).join();
}
// for (uint32_t threadNumber = 0; threadNumber < kThreadCount; ++threadNumber) {
// std::thread([&]() {
// rt->samplingProfiler->setRuntimeThread();
// EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
// }).join();
// }

rt->samplingProfiler->disable();
}
// rt->samplingProfiler->disable();
// }

TEST(SamplingProfilerTest, RegisterIdenticalThread) {
auto rt = makeRuntime(withSamplingProfilerEnabled);
rt->samplingProfiler->enable();
// TEST(SamplingProfilerTest, RegisterIdenticalThread) {
// auto rt = makeRuntime(withSamplingProfilerEnabled);
// rt->samplingProfiler->enable();

rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
// rt->samplingProfiler->setRuntimeThread();
// EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
// rt->samplingProfiler->setRuntimeThread();
// EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());

rt->samplingProfiler->disable();
}
// rt->samplingProfiler->disable();
// }

} // namespace

Expand Down

0 comments on commit c15b99e

Please sign in to comment.