LCOV - code coverage report
Current view: top level - app/fddev/commands - bench.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 12 0.0 %
Date: 2025-08-05 05:04:49 Functions: 0 2 0.0 %

          Line data    Source code
       1             : #include "../../shared_dev/commands/bench/bench.h"
       2             : #include "../../shared_dev/commands/dev.h"
       3             : 
       4             : #include <unistd.h>
       5             : #include <pthread.h>
       6             : 
       7             : void
       8             : agave_boot( config_t const * config );
       9             : 
      10             : static void *
      11           0 : agave_thread_main( void * _args ) {
      12           0 :   config_t * config = _args;
      13           0 :   agave_boot( config );
      14             : 
      15             :   /* Agave will never exit, we never set exit flag to true */
      16           0 :   FD_LOG_ERR(( "agave_boot() exited" ));
      17           0 :   return NULL;
      18           0 : }
      19             : 
      20             : void
      21             : fddev_bench_cmd_fn( args_t *   args,
      22           0 :                     config_t * config ) {
      23           0 :   bench_cmd_fn( args, config );
      24             : 
      25           0 :   pthread_t agave;
      26           0 :   pthread_create( &agave, NULL, agave_thread_main, (void *)config );
      27             : 
      28             :   /* Sleep parent thread forever, Ctrl+C will terminate. */
      29           0 :   for(;;) pause();
      30           0 : }
      31             : 
      32             : action_t fd_action_bench = {
      33             :   .name             = "bench",
      34             :   .args             = bench_cmd_args,
      35             :   .fn               = fddev_bench_cmd_fn,
      36             :   .perm             = dev_cmd_perm,
      37             :   .is_local_cluster = 1,
      38             :   .description      = "Test validator TPS benchmark"
      39             : };

Generated by: LCOV version 1.14