| 110 | /// a double. |
| 111 | template <typename T> |
| 112 | static int64_t BitcastToInt64(T val) { |
| 113 | static_assert(std::is_same<T, int64_t>::value || std::is_same<T, double>::value, |
| 114 | "Only double and int64_t are supported"); |
| 115 | int64_t res; |
| 116 | memcpy(&res, &val, sizeof(int64_t)); |
| 117 | return res; |
| 118 | } |
| 119 | |
| 120 | static bool UntimedProfileNode(const string& name) { |
| 121 | return name.compare(RuntimeProfile::FRAGMENT_INSTANCE_LIFECYCLE_TIMINGS) == 0 |
no outgoing calls
no test coverage detected