souffle  2.0.2-371-g6315b36
Static Public Member Functions
souffle::profile::DataComparator Class Reference

#include <DataComparator.h>

Collaboration diagram for souffle::profile::DataComparator:
Collaboration graph

Static Public Member Functions

static bool C_T (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by copy time. More...
 
static bool ID (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by ID. More...
 
static bool NAME (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by name. More...
 
static bool NR_T (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by non-recursive time. More...
 
static bool R_T (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by recursive time. More...
 
static bool TIME (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by total time. More...
 
static bool TUP (const std::shared_ptr< Row > &a, const std::shared_ptr< Row > &b)
 Sort by tuple count. More...
 

Detailed Description

Definition at line 27 of file DataComparator.h.

Member Function Documentation

◆ C_T()

static bool souffle::profile::DataComparator::C_T ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by copy time.

Definition at line 45 of file DataComparator.h.

45  {
46  return a->cells[3]->getDoubleVal() > b->cells[3]->getDoubleVal();
47  }

References b.

Referenced by souffle::profile::Table::sort().

◆ ID()

static bool souffle::profile::DataComparator::ID ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by ID.

Definition at line 60 of file DataComparator.h.

60  {
61  return b->cells[6]->getStringVal() > a->cells[6]->getStringVal();
62  }

References b.

Referenced by souffle::profile::Table::sort().

◆ NAME()

static bool souffle::profile::DataComparator::NAME ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by name.

Definition at line 55 of file DataComparator.h.

55  {
56  return b->cells[5]->getStringVal() > a->cells[5]->getStringVal();
57  }

References b.

Referenced by souffle::profile::Table::sort().

◆ NR_T()

static bool souffle::profile::DataComparator::NR_T ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by non-recursive time.

Definition at line 35 of file DataComparator.h.

35  {
36  return a->cells[1]->getDoubleVal() > b->cells[1]->getDoubleVal();
37  }

References b.

Referenced by souffle::profile::Table::sort().

◆ R_T()

static bool souffle::profile::DataComparator::R_T ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by recursive time.

Definition at line 40 of file DataComparator.h.

40  {
41  return a->cells[2]->getDoubleVal() > b->cells[2]->getDoubleVal();
42  }

References b.

Referenced by souffle::profile::Table::sort().

◆ TIME()

static bool souffle::profile::DataComparator::TIME ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by total time.

Definition at line 30 of file DataComparator.h.

30  {
31  return a->cells[0]->getDoubleVal() > b->cells[0]->getDoubleVal();
32  }

References b.

Referenced by souffle::profile::Table::sort().

◆ TUP()

static bool souffle::profile::DataComparator::TUP ( const std::shared_ptr< Row > &  a,
const std::shared_ptr< Row > &  b 
)
inlinestatic

Sort by tuple count.

Definition at line 50 of file DataComparator.h.

50  {
51  return b->cells[4]->getLongVal() < a->cells[4]->getLongVal();
52  }

References b.

Referenced by souffle::profile::Table::sort().


The documentation for this class was generated from the following file:
b
l j a showGridBackground &&c b raw series this eventEmitter b
Definition: htmlJsChartistMin.h:15