File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,17 +100,18 @@ int main(int argc, char **argv) {
100100 span.AddAnnotation (" Finished processing video." );
101101 span.End ();
102102
103- // Report view data.
104103 std::cout << " video_size_view definitions:" << video_size_view.DebugString ()
105- << " \n View data:\n " ;
104+ << " \n\n " ;
105+
106+ std::cout << " Waiting 10.1s for exporters to run...\n\n " ;
107+ absl::SleepFor (absl::Milliseconds (10100 ));
108+
109+ std::cout << " View data:\n " ;
106110 const auto data = view.GetData ();
107111 assert (data.type () == opencensus::stats::ViewData::Type::kDistribution );
108112 for (auto &it : data.distribution_data ()) {
109113 std::cout << " " ;
110114 for (auto &name : it.first ) std::cout << name << " : " ;
111115 std::cout << it.second .DebugString () << " \n " ;
112116 }
113-
114- std::cout << " \n Waiting for exporters to run...\n " ;
115- absl::SleepFor (absl::Milliseconds (5100 ));
116117}
You can’t perform that action at this time.
0 commit comments