mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
Adds enough to build the AST nodes for the module function declarations in a .em file. Adds: - Function: base class for module function declarations and user functions - FunctionParameterDeclaration: declaration for a function parameter, as well as its default value if any - FunctionParameterList: just a holder for function parameter declarations - ModuleFunctionDeclaration: for function declarations in .em files - FunctionResolver: hooks up function calls to module functions or user functions - ModuleProcessor: a visitor for processing const declarations and module function declarations (const declarations are yet to come from the main branch)
38 lines
978 B
C++
38 lines
978 B
C++
#ifndef POLSERVER_PROFILE_H
|
|
#define POLSERVER_PROFILE_H
|
|
|
|
#include <atomic>
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class Profile
|
|
{
|
|
public:
|
|
std::atomic<long long> build_workspace_micros;
|
|
std::atomic<long long> register_const_declarations_micros;
|
|
std::atomic<long long> optimize_micros;
|
|
std::atomic<long long> disambiguate_micros;
|
|
std::atomic<long long> analyze_micros;
|
|
std::atomic<long long> codegen_micros;
|
|
std::atomic<long long> prune_cache_select_micros;
|
|
std::atomic<long long> prune_cache_delete_micros;
|
|
|
|
std::atomic<long> ambiguities;
|
|
|
|
std::atomic<long> parse_em_count;
|
|
std::atomic<long> parse_src_count;
|
|
|
|
std::atomic<long long> load_em_micros;
|
|
std::atomic<long long> parse_em_micros;
|
|
std::atomic<long long> ast_em_micros;
|
|
|
|
std::atomic<long long> parse_src_micros;
|
|
std::atomic<long long> ast_src_micros;
|
|
|
|
std::atomic<long> cache_hits;
|
|
std::atomic<long> cache_misses;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_PROFILE_H
|