MySQL 8.0.39
Source Code Documentation
create_def.cc File Reference
#include <windows.h>
#include <algorithm>
#include <atomic>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <system_error>
#include <thread>
#include <unordered_set>
#include <vector>

Classes

class  Unique_symbol_map
 Gathers and prints out the unique symbols. More...
 
class  Line_buffer< TCallback >
 Buffers input and runs a specified callback on single complete lines found. More...
 
class  Process< TCallback >
 Runs a specified command line and calls a callback for all data that is written by the child program to its standard output. More...
 
class  Resp_file
 

Macros

#define _ITERATOR_DEBUG_LEVEL   0
 

Functions

void error (std::string message)
 Prints an error message supplied and attaches GetLastError with formatted message. More...
 
template<class TCallback >
Line_buffer< TCallback > create_line_buffer (TCallback &&callback)
 
template<class TCallback >
Process< TCallback > create_process (std::string cmd_line, TCallback &&input_handler, DWORD pipe_size)
 
double filetime_to_sec (const FILETIME &f)
 
double get_cpu_time (HANDLE process)
 
double our_cpu_time ()
 
template<class TCallback >
double measure_execution_time (TCallback &&callback)
 
int main (int argc, const char *argv[])
 

Variables

constexpr DWORD buf_size = 16 * 1024
 
char raw_buffer [buf_size]
 

Macro Definition Documentation

◆ _ITERATOR_DEBUG_LEVEL

#define _ITERATOR_DEBUG_LEVEL   0

Function Documentation

◆ create_line_buffer()

template<class TCallback >
Line_buffer< TCallback > create_line_buffer ( TCallback &&  callback)

◆ create_process()

template<class TCallback >
Process< TCallback > create_process ( std::string  cmd_line,
TCallback &&  input_handler,
DWORD  pipe_size 
)

◆ error()

void error ( std::string  message)

Prints an error message supplied and attaches GetLastError with formatted message.

◆ filetime_to_sec()

double filetime_to_sec ( const FILETIME &  f)

◆ get_cpu_time()

double get_cpu_time ( HANDLE  process)

◆ main()

int main ( int  argc,
const char *  argv[] 
)

◆ measure_execution_time()

template<class TCallback >
double measure_execution_time ( TCallback &&  callback)

◆ our_cpu_time()

double our_cpu_time ( )

Variable Documentation

◆ buf_size

constexpr DWORD buf_size = 16 * 1024
constexpr

◆ raw_buffer

char raw_buffer[buf_size]