Macros | Functions | Variables
benchmark-spawn.c File Reference
#include "task.h"
#include "uv.h"
Include dependency graph for benchmark-spawn.c:

Go to the source code of this file.

Macros

#define OUTPUT_SIZE   1024
 

Functions

 BENCHMARK_IMPL (spawn)
 
static void exit_cb (uv_process_t *process, int64_t exit_status, int term_signal)
 
static void maybe_spawn (void)
 
static void on_alloc (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void on_read (uv_stream_t *pipe, ssize_t nread, const uv_buf_t *buf)
 
static void pipe_close_cb (uv_handle_t *pipe)
 
static void process_close_cb (uv_handle_t *handle)
 
static void spawn (void)
 

Variables

static char * args [3]
 
static int done
 
static char exepath [1024]
 
static size_t exepath_size = 1024
 
static uv_loop_tloop
 
static int N = 1000
 
static uv_process_options_t options
 
static uv_pipe_t out
 
static char output [OUTPUT_SIZE]
 
static int output_used
 
static int pipe_open
 
static uv_process_t process
 
static int process_open
 

Macro Definition Documentation

◆ OUTPUT_SIZE

#define OUTPUT_SIZE   1024

Definition at line 39 of file benchmark-spawn.c.

Function Documentation

◆ BENCHMARK_IMPL()

BENCHMARK_IMPL ( spawn  )

Definition at line 137 of file benchmark-spawn.c.

◆ exit_cb()

static void exit_cb ( uv_process_t process,
int64_t  exit_status,
int  term_signal 
)
static

Definition at line 67 of file benchmark-spawn.c.

◆ maybe_spawn()

static void maybe_spawn ( void  )
static

Definition at line 50 of file benchmark-spawn.c.

◆ on_alloc()

static void on_alloc ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 76 of file benchmark-spawn.c.

◆ on_read()

static void on_read ( uv_stream_t pipe,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 91 of file benchmark-spawn.c.

◆ pipe_close_cb()

static void pipe_close_cb ( uv_handle_t pipe)
static

Definition at line 84 of file benchmark-spawn.c.

◆ process_close_cb()

static void process_close_cb ( uv_handle_t handle)
static

Definition at line 60 of file benchmark-spawn.c.

◆ spawn()

static void spawn ( void  )
static

Definition at line 103 of file benchmark-spawn.c.

Variable Documentation

◆ args

char* args[3]
static

Definition at line 36 of file benchmark-spawn.c.

◆ done

int done
static

Definition at line 30 of file benchmark-spawn.c.

◆ exepath

char exepath[1024]
static

Definition at line 34 of file benchmark-spawn.c.

◆ exepath_size

size_t exepath_size = 1024
static

Definition at line 35 of file benchmark-spawn.c.

◆ loop

uv_loop_t* loop
static

Definition at line 27 of file benchmark-spawn.c.

◆ N

int N = 1000
static

Definition at line 29 of file benchmark-spawn.c.

◆ options

uv_process_options_t options
static

Definition at line 33 of file benchmark-spawn.c.

◆ out

uv_pipe_t out
static

Definition at line 37 of file benchmark-spawn.c.

◆ output

char output[OUTPUT_SIZE]
static

Definition at line 40 of file benchmark-spawn.c.

◆ output_used

int output_used
static

Definition at line 41 of file benchmark-spawn.c.

◆ pipe_open

int pipe_open
static

Definition at line 44 of file benchmark-spawn.c.

◆ process

uv_process_t process
static

Definition at line 32 of file benchmark-spawn.c.

◆ process_open

int process_open
static

Definition at line 43 of file benchmark-spawn.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04