[Openmp-commits] [openmp] r266634 - [STATS] Remove timePair class and unused functions
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Apr 18 10:27:31 PDT 2016
Author: jlpeyton
Date: Mon Apr 18 12:27:30 2016
New Revision: 266634
URL: http://llvm.org/viewvc/llvm-project?rev=266634&view=rev
Log:
[STATS] Remove timePair class and unused functions
Modified:
openmp/trunk/runtime/src/kmp_stats_timing.cpp
openmp/trunk/runtime/src/kmp_stats_timing.h
Modified: openmp/trunk/runtime/src/kmp_stats_timing.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats_timing.cpp?rev=266634&r1=266633&r2=266634&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats_timing.cpp (original)
+++ openmp/trunk/runtime/src/kmp_stats_timing.cpp Mon Apr 18 12:27:30 2016
@@ -142,27 +142,3 @@ std::string formatSI(double interval, in
return os.str();
}
-
-tsc_tick_count::tsc_interval_t computeLastInLastOutInterval(timePair * times, int nTimes)
-{
- timePair lastTimes = times[0];
- tsc_tick_count * startp = lastTimes.get_startp();
- tsc_tick_count * endp = lastTimes.get_endp();
-
- for (int i=1; i<nTimes; i++)
- {
- (*startp) = startp->later(times[i].get_start());
- (*endp) = endp->later (times[i].get_end());
- }
-
- return lastTimes.duration();
-}
-
-std::string timePair::format() const
-{
- std::ostringstream oss;
-
- oss << start.getValue() << ":" << end.getValue() << " = " << (end-start).getValue();
-
- return oss.str();
-}
Modified: openmp/trunk/runtime/src/kmp_stats_timing.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_stats_timing.h?rev=266634&r1=266633&r2=266634&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_stats_timing.h (original)
+++ openmp/trunk/runtime/src/kmp_stats_timing.h Mon Apr 18 12:27:30 2016
@@ -93,27 +93,4 @@ inline std::string formatTicks(double in
return formatSI(interval, width, 'T');
}
-class timePair
-{
- tsc_tick_count KMP_ALIGN_CACHE start;
- tsc_tick_count end;
-
-public:
- timePair() : start(-std::numeric_limits<int64_t>::max()), end(-std::numeric_limits<int64_t>::max()) {}
- tsc_tick_count get_start() const { return start; }
- tsc_tick_count get_end() const { return end; }
- tsc_tick_count * get_startp() { return &start; }
- tsc_tick_count * get_endp() { return &end; }
-
- void markStart() { start = tsc_tick_count::now(); }
- void markEnd() { end = tsc_tick_count::now(); }
- void set_start(tsc_tick_count s) { start = s; }
- void set_end (tsc_tick_count e) { end = e; }
-
- tsc_tick_count::tsc_interval_t duration() const { return end-start; }
- std::string format() const;
-
-};
-
-extern tsc_tick_count::tsc_interval_t computeLastInLastOutInterval(timePair * times, int nTimes);
#endif // KMP_STATS_TIMING_H
More information about the Openmp-commits
mailing list