MCPcopy Create free account
hub / github.com/apache/arrow / GetRuntimeInfo

Function GetRuntimeInfo

cpp/src/arrow/config.cc:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71const BuildInfo& GetBuildInfo() { return kBuildInfo; }
72
73RuntimeInfo GetRuntimeInfo() {
74 RuntimeInfo info;
75 auto cpu_info = CpuInfo::GetInstance();
76 info.simd_level =
77 MakeSimdLevelString([&](int64_t flags) { return cpu_info->IsSupported(flags); });
78 info.detected_simd_level =
79 MakeSimdLevelString([&](int64_t flags) { return cpu_info->IsDetected(flags); });
80 info.using_os_timezone_db = USE_OS_TZDB;
81#if !USE_OS_TZDB
82 info.timezone_db_path = timezone_db_path;
83#else
84 info.timezone_db_path = std::optional<std::string>();
85#endif
86 return info;
87}
88
89// TODO(GH-48593): Remove when libc++ supports std::chrono timezone
90// https://github.com/apache/arrow/issues/48593

Callers 1

runtime_infoFunction · 0.85

Calls 3

MakeSimdLevelStringFunction · 0.85
IsDetectedMethod · 0.80
IsSupportedMethod · 0.45

Tested by

no test coverage detected