Flex  0.17.9
Namespaces | Functions | Variables
service_utils.h File Reference
#include <fcntl.h>
#include <rapidjson/pointer.h>
#include <rapidjson/rapidjson.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <unistd.h>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <filesystem>
#include <iostream>
#include <string>
#include <vector>
#include "flex/utils/property/types.h"
#include "flex/utils/result.h"
#include "flex/utils/yaml_utils.h"
#include <glog/logging.h>
#include <rapidjson/document.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <boost/filesystem.hpp>
Include dependency graph for service_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 gs
 

Functions

int64_t gs::GetCurrentTimeStamp ()
 Util functions. More...
 
std::string gs::rapidjson_stringify (const rapidjson::Value &value, int indent=-1)
 
std::string gs::toUpper (const std::string str)
 
bool gs::to_json (rapidjson::Document &j, const PropertyType &p)
 
rapidjson::Document gs::to_json (const PropertyType &p, rapidjson::Document::AllocatorType *allocator=nullptr)
 
bool gs::from_json (const rapidjson::Value &j, PropertyType &p)
 
PropertyType gs::from_json (const rapidjson::Value &j)
 
boost::filesystem::path gs::get_current_binary_directory ()
 
std::string gs::jsonToString (const rapidjson::Value &json)
 
std::string gs::get_current_dir ()
 
std::string gs::find_codegen_bin ()
 
std::pair< uint64_t, uint64_t > gs::get_total_physical_memory_usage ()
 
void gs::init_cpu_usage_watch ()
 
std::pair< double, double > gs::get_current_cpu_usage ()
 
std::string gs::memory_to_mb_str (uint64_t mem_bytes)
 

Variables

static constexpr const char * gs::CODEGEN_BIN = "load_plan_and_gen.sh"