MySQL 26.10.0
Source Code Documentation
system_info_macos.h File Reference
#include <mach/mach.h>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <string>
#include <system_error>
#include <vector>
#include "mysql/components/library_mysys/system_info.h"

Go to the source code of this file.

Classes

struct  mysql::system_info::internal::macOS_thread_sample
 Native macOS values collected for one thread. More...
 
struct  mysql::system_info::internal::macOS_thread_deallocator
 Callbacks used to release native macOS thread resources. More...
 
class  mysql::system_info::internal::macOS_thread_resources
 Own native thread ports and the Mach allocated thread array. More...
 

Namespaces

namespace  mysql
 
namespace  mysql::system_info
 
namespace  mysql::system_info::internal
 

Enumerations

enum class  mysql::system_info::internal::macOS_thread_sample_state { mysql::system_info::internal::complete , mysql::system_info::internal::disappeared }
 Result of collecting one native macOS thread. More...
 

Functions

Thread_state mysql::system_info::internal::macos_thread_state (int run_state)
 Map a native Mach thread state to the portable thread state. More...
 
bool mysql::system_info::internal::macos_time_value_to_milliseconds (int64_t seconds, int64_t microseconds, std::chrono::milliseconds &milliseconds)
 Convert a Mach time_value_t value to whole milliseconds. More...
 
std::string mysql::system_info::internal::copy_bounded_macos_thread_name (const char *name, size_t size)
 Copy a thread name from a fixed size native buffer. More...
 
std::error_code mysql::system_info::internal::map_macos_thread_samples (std::vector< macOS_thread_sample > samples, std::error_code disappearance_error, Thread_inventory &inventory, Thread_cpu_snapshot &cpu)
 Build matching thread inventory and CPU snapshots from native samples. More...
 
void mysql::system_info::internal::complete_macos_thread_collection (macOS_thread_resources &resources, std::error_code collection_error, Thread_inventory inventory, Thread_cpu_snapshot cpu, Process_threads_snapshot &result)
 Release native thread resources before publishing the collected snapshots. More...