mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 23:55:43 +00:00
3959 lines
286 KiB
C
3959 lines
286 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-metrics@smetrics.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-metrics@smetrics.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#include <pthread.h>
|
|
#include <string.h>
|
|
#include <setjmp.h>
|
|
#include <unistd.h>
|
|
#include <dirent.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <time.h>
|
|
#include <stdio.h>
|
|
#include <signal.h>
|
|
#include <stdlib.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
|
|
typedef struct tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw;
|
|
typedef struct tySequence__RxtHNU9a7qROetEL3oUnKzA tySequence__RxtHNU9a7qROetEL3oUnKzA;
|
|
typedef struct tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg;
|
|
typedef struct tySequence__VodmML9btsOO3nz0d6nbJsA tySequence__VodmML9btsOO3nz0d6nbJsA;
|
|
typedef struct tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q;
|
|
typedef struct tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw;
|
|
typedef struct tySequence__Q39c0zQO2e7IXPNDkhULQdg tySequence__Q39c0zQO2e7IXPNDkhULQdg;
|
|
typedef struct tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw;
|
|
typedef struct tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA;
|
|
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct Exception Exception;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct TSafePoint TSafePoint;
|
|
typedef struct tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A;
|
|
typedef struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q;
|
|
typedef struct tySequence__HhwRVSXQRFCCEUo2zMKJVg tySequence__HhwRVSXQRFCCEUo2zMKJVg;
|
|
typedef struct tyTuple__LCURwohbLBusrL8hdCnvng tyTuple__LCURwohbLBusrL8hdCnvng;
|
|
typedef struct tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg;
|
|
typedef struct tyTuple__0hEbbYmlam6yzyW5MFo9cjg tyTuple__0hEbbYmlam6yzyW5MFo9cjg;
|
|
typedef struct tyTuple__CseYFEs9b0bHYKI9bPdpm5CA tyTuple__CseYFEs9b0bHYKI9bPdpm5CA;
|
|
typedef struct tyObject_Thread__j0udO7e8EBNKZJ2hz9aEuDw tyObject_Thread__j0udO7e8EBNKZJ2hz9aEuDw;
|
|
typedef struct tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg;
|
|
typedef struct tyTuple__J0FzjuY02DFObU1sQZLwJA tyTuple__J0FzjuY02DFObU1sQZLwJA;
|
|
typedef struct tySequence__1Ld21YGXyvbVguAJHWo4Xw tySequence__1Ld21YGXyvbVguAJHWo4Xw;
|
|
typedef struct tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg;
|
|
typedef struct tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ;
|
|
typedef struct tyObject_Thread__YRlh9cu9aRh0NFPkIQ9arDrLg tyObject_Thread__YRlh9cu9aRh0NFPkIQ9arDrLg;
|
|
typedef struct tySequence__tjoHijsTQMeE3IzlIv39cNg tySequence__tjoHijsTQMeE3IzlIv39cNg;
|
|
typedef struct tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ;
|
|
typedef struct tySequence__t319a7QdvsfiaeHv2eY3PfA tySequence__t319a7QdvsfiaeHv2eY3PfA;
|
|
typedef struct tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA;
|
|
typedef struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw;
|
|
typedef struct tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw;
|
|
typedef struct tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA;
|
|
typedef struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA;
|
|
typedef struct tyTuple__DJd8vJLOdD01l8V09cKBCnQ tyTuple__DJd8vJLOdD01l8V09cKBCnQ;
|
|
typedef struct tyTuple__2OzvIQgPGUtDBLUZcVjrKQ tyTuple__2OzvIQgPGUtDBLUZcVjrKQ;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
typedef NU8 tySet_tyEnum_RegexFlag__gA189bEOtGhLt2cCHGW4ywg;
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw {tySequence__RxtHNU9a7qROetEL3oUnKzA* data;
|
|
NI counter;
|
|
NI first;
|
|
NI last;
|
|
};
|
|
struct tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg { RootObj Sup;NimStringDesc* name;
|
|
NimStringDesc* help;
|
|
NimStringDesc* typ;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labels;
|
|
tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw metrics;
|
|
NI creationThreadId;
|
|
NF sampleRate;
|
|
};
|
|
struct tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg { RootObj Sup;NimStringDesc* name;
|
|
NF value;
|
|
NI64 timestamp;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labels;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValues;
|
|
};
|
|
struct tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw {tySequence__Q39c0zQO2e7IXPNDkhULQdg* data;
|
|
NI counter;
|
|
NI first;
|
|
NI last;
|
|
};
|
|
struct tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q { RootObj Sup;pthread_mutex_t lock;
|
|
tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw collectors;
|
|
};
|
|
typedef NF tyArray__6ZcwK4fmpVKoZLPsJghTYg[15];
|
|
struct tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg Sup;};
|
|
struct tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw { tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA Sup;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
|
|
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
typedef long tyArray__TcvIiMAJvcwzNLsZkfnFnQ[25];
|
|
struct TSafePoint {TSafePoint* prev;
|
|
NI status;
|
|
jmp_buf context;
|
|
};
|
|
struct tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
|
|
typedef NU8 tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg;
|
|
struct tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q {NI64 seconds;
|
|
NI nanosecond;
|
|
};
|
|
typedef NU8 tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ;
|
|
typedef NI64 tyArray__pDfjTbtkTNjmi9bTcaNV32Q[8];
|
|
typedef NU8 tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg;
|
|
struct tyTuple__LCURwohbLBusrL8hdCnvng {
|
|
tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg Field0;
|
|
NimStringDesc* Field1;
|
|
};
|
|
typedef char tyArray__XKk9bNZbVEtY3RuROG9aRBgw[256];
|
|
typedef long tyArray__QS4edQct6fXoghbs69aZ9a8w[3];
|
|
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
|
|
struct tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg { tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA Sup;};
|
|
struct tyTuple__0hEbbYmlam6yzyW5MFo9cjg {
|
|
NCSTRING Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__0hEbbYmlam6yzyW5MFo9cjg tyArray__NOM9buxzXBVs9bzjucQTh9cUQ[100];
|
|
struct tyTuple__CseYFEs9b0bHYKI9bPdpm5CA {
|
|
NCSTRING Field0;
|
|
NI Field1;
|
|
NI Field2;
|
|
};
|
|
typedef struct {
|
|
N_NIMCALL_PTR(NI, ClP_0) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__oeKKLB9aT2GBgHxIzVFZJKw;
|
|
typedef NU8 tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA;
|
|
typedef N_CLOSURE_PTR(NI, TM__TzgtsIsJxZkxBRfOAyNbPA_67) (tyTuple__0hEbbYmlam6yzyW5MFo9cjg x, tyTuple__0hEbbYmlam6yzyW5MFo9cjg y, void* ClE_0);
|
|
typedef N_NIMCALL_PTR(void, tyProc__rVvEMHFO9aKp4yla4BG9cjuQ) (tyTuple__J0FzjuY02DFObU1sQZLwJA m);
|
|
struct tyTuple__J0FzjuY02DFObU1sQZLwJA {
|
|
NimStringDesc* Field0;
|
|
NU16 Field1;
|
|
};
|
|
struct tyObject_Thread__j0udO7e8EBNKZJ2hz9aEuDw {tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg* core;
|
|
unsigned long sys;
|
|
tyProc__rVvEMHFO9aKp4yla4BG9cjuQ dataFn;
|
|
tyTuple__J0FzjuY02DFObU1sQZLwJA data;
|
|
};
|
|
typedef NU8 tyEnum_MetricProtocol__WKrmHyQpOVDY6vJXDZrAAA;
|
|
typedef NU8 tyEnum_NetProtocol__r49avWAWSPUakdLF9aNZTcqg;
|
|
struct tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg {tyEnum_MetricProtocol__WKrmHyQpOVDY6vJXDZrAAA metricProtocol;
|
|
tyEnum_NetProtocol__r49avWAWSPUakdLF9aNZTcqg netProtocol;
|
|
NimStringDesc* address;
|
|
NU16 port;
|
|
};
|
|
typedef long long tyArray__xLtLuIT9aUkeKRzzMNC75Vw[6];
|
|
struct tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ {NI rd;
|
|
NI wr;
|
|
NI count;
|
|
NI mask;
|
|
NI maxItems;
|
|
NU8* data;
|
|
pthread_mutex_t lock;
|
|
pthread_cond_t cond;
|
|
TNimType* elemType;
|
|
NIM_BOOL ready;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
};
|
|
struct tyObject_Thread__YRlh9cu9aRh0NFPkIQ9arDrLg {tyObject_GcThread__hgJQSlfXDOK3SwSHjeZBXg* core;
|
|
unsigned long sys;
|
|
tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ dataFn;
|
|
};
|
|
typedef unsigned long tyArray__2VPt2Ygo2bc8d9cj8iiKnSg[16];
|
|
struct tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA {NimStringDesc* name;
|
|
NF value;
|
|
NF increment;
|
|
NimStringDesc* metricType;
|
|
NI64 timestamp;
|
|
NF sampleRate;
|
|
};
|
|
typedef NimStringDesc* tyArray__sMpvt1sOxOJ3LFGulnbeMQ[4];
|
|
typedef NimStringDesc* tyArray__24KAM9afIUgUaqBaEBB6r9bg[3];
|
|
struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw {NI64 seconds;
|
|
NI nanosecond;
|
|
};
|
|
typedef NIM_CHAR tyArray__QQGLPNVVwLhYjkngqAxXQQ[4001];
|
|
typedef NU8 tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg;
|
|
typedef NU8 tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw;
|
|
typedef NU8 tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg;
|
|
struct tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ {int fd;
|
|
NIM_BOOL isBuffered;
|
|
tyArray__QQGLPNVVwLhYjkngqAxXQQ buffer;
|
|
NI currPos;
|
|
NI bufLen;
|
|
NI32 lastError;
|
|
tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg domain;
|
|
tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw sockType;
|
|
tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg protocol;
|
|
};
|
|
typedef NU8 tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg;
|
|
typedef NimStringDesc* tyArray__8ZvwQIddfpj2THRVPsFzIQ[1];
|
|
struct tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg Sup;};
|
|
struct tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA { Exception Sup;};
|
|
struct tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA { tyObject_Defect__LbeSGvgPzGzXnW9caIkJqMA Sup;};
|
|
struct tyTuple__DJd8vJLOdD01l8V09cKBCnQ {
|
|
NI Field0;
|
|
NI Field1;
|
|
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* Field2;
|
|
tySequence__VodmML9btsOO3nz0d6nbJsA* Field3;
|
|
};
|
|
struct tyTuple__2OzvIQgPGUtDBLUZcVjrKQ {
|
|
NI Field0;
|
|
NI Field1;
|
|
tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* Field2;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__VodmML9btsOO3nz0d6nbJsA { TGenericSeq Sup; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* data[SEQ_DECL_SIZE];};struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__HhwRVSXQRFCCEUo2zMKJVg { TGenericSeq Sup; tyTuple__LCURwohbLBusrL8hdCnvng data[SEQ_DECL_SIZE];};struct tySequence__1Ld21YGXyvbVguAJHWo4Xw { TGenericSeq Sup; tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg data[SEQ_DECL_SIZE];};struct tySequence__tjoHijsTQMeE3IzlIv39cNg { TGenericSeq Sup; tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* data[SEQ_DECL_SIZE];};struct tySequence__t319a7QdvsfiaeHv2eY3PfA { TGenericSeq Sup; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q data[SEQ_DECL_SIZE];};struct tySequence__RxtHNU9a7qROetEL3oUnKzA { TGenericSeq Sup; tyTuple__DJd8vJLOdD01l8V09cKBCnQ data[SEQ_DECL_SIZE];};struct tySequence__Q39c0zQO2e7IXPNDkhULQdg { TGenericSeq Sup; tyTuple__2OzvIQgPGUtDBLUZcVjrKQ data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_2)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw*, re__BHdoI8AriYxT9bGXrX9c7EhQ)(NimStringDesc* s, tySet_tyEnum_RegexFlag__gA189bEOtGhLt2cCHGW4ywg flags);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_4)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, hash__F9cmFKOoU1TqQqFADnwUDtA)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector);
|
|
static N_INLINE(NI, emarkamp___Bho3MSI0G3qbEZZcjdigaQhashes)(NI h, NI val);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, hash__6PCYkKlCNhq9cnRLnqWKkwQ)(NimStringDesc* x);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
static N_INLINE(NI, emarkdollar___1VtZEcAzbCzFoJje5ex9aKwhashes)(NI h);
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__muUtV6bv9ckc9cbIXLcOzIEg)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt);
|
|
static N_NIMCALL(void, Marker_tyRef__TBCqhdRln3R9c9aowGiwnZow)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tySequence__VodmML9btsOO3nz0d6nbJsA)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__ecoffcajrsDrsmQ682SYrw)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__S6edH5xvccB7X8MNpU6vZw)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_11)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*, newRegistry__9aGaV6ZlOG1kf02BLhoxenA)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
static N_INLINE(void, initLock__Mz9ax9a7rBFxTQq0g0dLnxAwlocks)(pthread_mutex_t* lock);
|
|
N_LIB_PRIVATE N_NIMCALL(void, init__9bnOyDxN2xcfkMIfkmQokyA)(tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw* s, NI initialSize);
|
|
static N_NIMCALL(void, Marker_tyRef__OXXy9av46ePON7Ddtio6XWQ)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_12)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*, newProcessInfo__qma07NyTGNiidpA2dIReew)(NimStringDesc* name, NimStringDesc* help, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
N_LIB_PRIVATE N_NIMCALL(void, validateName__tMzz1A6SblAbPUBgpjhjDA)(NimStringDesc* name);
|
|
static N_INLINE(NIM_BOOL, contains__ATpcLUBGRWa2duwyoHgYLAre)(NimStringDesc* s, tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* pattern, NI start);
|
|
static N_INLINE(NI, find__gAVr3SrfAX5A4KBIYVfR9aAre)(NimStringDesc* s, tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* pattern, NI start);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, find__QwZ5hFD5E2v9cPFehqKJVXg)(NCSTRING buf, tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* pattern, NI start, NI bufSize);
|
|
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__rztIrLDfsFYpn9bx4lj6LKA)(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
N_LIB_PRIVATE N_NIMCALL(void, acquire__9bDG9bIkA6DtNcXVdL7bnLvg)(pthread_mutex_t* lock);
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__9aTCSQ11tSJ9cydlWIG9aPteg)(tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw* s, tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* key);
|
|
static N_NIMCALL(void, Marker_tyRef__DBrhwKUQMba9aRc9c9boA9a3qA)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void, incl__9b49bS7GqvqpN0Q3MGneD7ZA)(tyObject_OrderedSet__KmhVjTVGTaJmtA3BpwKNsw* s, tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* key);
|
|
static N_INLINE(void, popSafePoint)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, release__9bDG9bIkA6DtNcXVdL7bnLvg_2)(pthread_mutex_t* lock);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimLeaveFinally)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_21)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(FILE*, open__cb1k9citqyT9a9brBSJAz8pkg)(NimStringDesc* filename_0, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
|
|
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, readLine__FbqDHP9bu7nqCh9c04dnSOxw)(FILE* f, NimStringDesc** line);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
|
|
N_LIB_PRIVATE N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitChar)(NimStringDesc* s, NIM_CHAR sep, NI maxsplit);
|
|
N_LIB_PRIVATE N_NIMCALL(void, close__fU6ZlJAtQ9bre04EDZLdGsA_3)(FILE* f);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
|
|
static N_INLINE(void, popCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__vDtthGBQXbm9crskYLJhYmw)(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(NI64, toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q time);
|
|
static N_INLINE(NI64, convert__2z1a0DRE31bT73xgVvBfQAtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI64 quantity);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
|
|
static N_INLINE(NIM_BOOL, nimDivInt64)(NI64 a, NI64 b, NI64* res);
|
|
N_LIB_PRIVATE N_NIMCALL(NI64, toUnix__mXmxlr1pBpariZiJTjytHg)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q t);
|
|
static N_INLINE(NI, convert__bBJ7N1GpubC85YlnXz3nHgtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI quantity);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, nanosecond__w9bWusm7fy39b4s5K9azEA0RA)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q time);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q, getTime__h20mpqrwsumk6J9bRdCm6IQ)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, initOrderedTable__rxOm0EdktnR146KLsyIElg)(NI initialSize, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___uohHPU9avINrKcXskGy9ahfg)(tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* t, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* key, tySequence__VodmML9btsOO3nz0d6nbJsA* val);
|
|
static N_INLINE(NimStringDesc*, X5BX5D___j0Z1d16G1eC5eFkDa00ZFwsystem)(NimStringDesc** s, NI sLen_0, NI i);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitString)(NimStringDesc* s, NimStringDesc* sep, NI maxsplit);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readFile__4PGnM9bWmsH0Nu7dnr3XzgA)(NimStringDesc* filename_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__VodmML9btsOO3nz0d6nbJsA**, X5BX5D___56YoT2jVNRbehtHNzP9bAVw)(tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* t, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* key);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitWhitespace)(NimStringDesc* s, NI maxsplit);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
|
|
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOSError__CWyPYlyH9a6rAuZckFyVxPA)(NI32 errorCode, NimStringDesc* additionalInfo);
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__9bUWNxbcGnToMWA9b79aTXLIw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, cstrToNimstr)(NCSTRING str);
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
|
|
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, slash___gEyhbzZ1UcxyenWRLJRXNQ)(NimStringDesc* head, NimStringDesc* tail);
|
|
static N_INLINE(NIM_BOOL, dirExists__AWUc3v8Mlad7tvNYF3Ak8Qos)(NimStringDesc* dir);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nosexistsDir)(NimStringDesc* dir);
|
|
static N_NIMCALL(void, Marker_tySequence__HhwRVSXQRFCCEUo2zMKJVg)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg, getSymlinkFileKind__wTnLPNAWjgwVnuiJ9ax0ZGQ)(NimStringDesc* path);
|
|
static N_INLINE(Exception*, getCurrentException)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, printError__Ocg9bqNMxyiGBDEaGvXNN1Q)(NimStringDesc* msg);
|
|
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x, NI xLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, write__PArlm09bKklm2BLsCg6YtaA)(FILE* f, NimStringDesc* s);
|
|
static N_NIMCALL(void, Marker_tyRef__Lyd39biUPMY5BcuojDhRizA)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_55)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*, newRuntimeInfo__n8Vk39b23tItjO19a29cKN7kQ)(NimStringDesc* name, NimStringDesc* help, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__XE8XQtxVFfk7RrK6JqihhA)(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__Qq7bkHwS70v9bHxXJ71vxZw)(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, getTotalMem__hrQB9bN29c1nR1E9cHqYcNcDA_3)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, getOccupiedMem__hrQB9bN29c1nR1E9cHqYcNcDA)(void);
|
|
static N_INLINE(NIM_BOOL, eqeq___aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x, NCSTRING y);
|
|
N_LIB_PRIVATE N_NIMCALL(void, sort__JiulWtSEje0u1tYdIVp9bPg)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg* a, NI aLen_0, tyProc__oeKKLB9aT2GBgHxIzVFZJKw cmp, tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA order);
|
|
N_LIB_PRIVATE N_NIMCALL(NI, colonanonymous___hGeHeKnt1teQPepcw0zjZA)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg a, tyTuple__0hEbbYmlam6yzyW5MFo9cjg b);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_74)(void);
|
|
static N_NIMCALL(void, Marker_tySequence__1Ld21YGXyvbVguAJHWo4Xw)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_82)(void);
|
|
static N_NIMCALL(void, Marker_tySequence__tjoHijsTQMeE3IzlIv39cNg)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_83)(void);
|
|
static N_NIMCALL(void, Marker_tySequence__t319a7QdvsfiaeHv2eY3PfA)(void* p, NI op);
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_84)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, open__dsR75sy8cZ4BrmTxSxy3WA)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, NI maxItems);
|
|
N_LIB_PRIVATE N_NIMCALL(void, createThread__um5slEgmxl6nQ1entEtXNw)(tyObject_Thread__YRlh9cu9aRh0NFPkIQ9arDrLg* t, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ tp);
|
|
N_LIB_PRIVATE N_NIMCALL(void, pushMetricsWorker__QERFozcUs9cJJl0oYkCJnRw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, ignoreSignalsInThread__QERFozcUs9cJJl0oYkCJnRw_2)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, osErrorMsg__33xViSVWAmDrexoKkLfMhg)(NI32 errorCode);
|
|
N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, randomize__JYHVSm4CtuuZW3MM2Ut4bQ)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, recv__1w5IawKMLquzM26QAGEYMA)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA* Result);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(NF, rand__dkCsfTGOZrza5peBrYOGxQ)(NF max);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
|
|
N_LIB_PRIVATE N_NIMCALL(void, reconnectSocket__qqMIS8Hsn0TnxjKYwNHAwQ)(NI i, tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg backend);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ntLtDuration)(tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw a, tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw b);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw, ntDiffTime)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q a, tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q b);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nossleep)(NI milsecs);
|
|
N_LIB_PRIVATE N_NIMCALL(void, close__UCnvqeCP6HY9ax9cmybKvMtw)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket);
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ*, newSocket__Jq0qsT9cdAR4d7YGWWa2QIA)(tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg domain, tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw sockType, tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg protocol, NIM_BOOL buffered);
|
|
N_LIB_PRIVATE N_NIMCALL(void, connect__WjBu4RATciIBuPu7JT65Mg)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NimStringDesc* address, NU16 port, NI timeout);
|
|
N_LIB_PRIVATE N_NIMCALL(void, send__sP9af4zGpnwmZkRofZDfbQQ)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NimStringDesc* data, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags);
|
|
static N_NIMCALL(void, Marker_tyRef__AcXA5LTiMbTyem2AVbTT5w)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(void, validateLabels__29cwd9cI9beYlJmsEoJ6DBV2w)(NimStringDesc** labels, NI labelsLen_0, NimStringDesc** invalidLabelNames, NI invalidLabelNamesLen_0);
|
|
static N_INLINE(NIM_BOOL, contains__MghwuKjQqmVLYE8A59cNGHgsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
|
|
static N_INLINE(NI, find__CWgb1wQSxTCKtdHVU5pCYQsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___KSooXBZnYft5L9cGgXYN9bxA)(NimStringDesc** x_0, NI x_0Len_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, at___9au1Hh5AAg9cMC8zv7hfdWBg)(NimStringDesc** a, NI aLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__VodmML9btsOO3nz0d6nbJsA*, newGaugeMetrics__dRtKx2no8Mau6XULdw3IZA)(NimStringDesc* name_0, NimStringDesc** labels, NI labelsLen_0, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__O9bSd9bhC9aowo1QmApQXVXUg)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
static N_NIMCALL(void, Marker_tyRef__1zvu7qZyvvdj9bFNfopFZvQ)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__VodmML9btsOO3nz0d6nbJsA*, newCounterMetrics__dRtKx2no8Mau6XULdw3IZA_2)(NimStringDesc* name_0, NimStringDesc** labels, NI labelsLen_0, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__mUvLYcTKCVUFc9bfQ8WRH7A)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateCounterLabelValues__b9a7bbVVWtI3OefpFLa9cegQ)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* counter, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateLabelValues__WmzU5NlcThuOQdaURocHhw)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, repeat__9cuTwshdYVG5RkixruJSdFg)(NimStringDesc* x_0, NI n_0);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__12nY31z78V72F9cIAyo1OIA)(tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* t, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* key_0);
|
|
N_LIB_PRIVATE N_NIMCALL(void, atomicAdd__TNBcLLyQmCERe1V6hXdj7Q)(NF* dest_0, NF amount);
|
|
N_LIB_PRIVATE N_NIMCALL(void, pushMetrics__8tvcpgj7MPtkpeMNaGRJow)(NimStringDesc* name_0, NF value_0, NF increment, NimStringDesc* metricType, NI64 timestamp, NF sampleRate);
|
|
static N_INLINE(NIM_BOOL, trySend__yfjPDK2emQA210M7WOSzagsystem)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA* msg);
|
|
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, sendImpl__wSGPBHwFnSdhsolDckAk3Q)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* q_0, TNimType* typ, void* msg, NIM_BOOL noBlock);
|
|
N_LIB_PRIVATE N_NIMCALL(void, incGauge__HwJS9c9bgiy5rwuQi0WzS4qw)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NF amount, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NimStringDesc** labelValues, NI labelValuesLen_0);
|
|
extern TNimType NTI__dkhOdInu11QXB2HnNpgmJQ_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_3, "^[a-zA-Z_:][a-zA-Z0-9_:]*$", 26);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_5, "^[a-zA-Z_][a-zA-Z0-9_]*$", 24);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_7, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/system/iterators.nim(189, 11) `len(a) == L` the l"
|
|
"ength of the seq changed while iterating over it", 175);
|
|
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
|
|
N_LIB_PRIVATE TNimType NTI__recdHZbXZv9bB8u9aRHCM5Kg_;
|
|
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
|
|
extern TNimType NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_;
|
|
extern TNimType NTI__Aav8dQoMlCFnZRxA0IhTHQ_;
|
|
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
|
|
N_LIB_PRIVATE TNimType NTI__TBCqhdRln3R9c9aowGiwnZow_;
|
|
N_LIB_PRIVATE TNimType NTI__VodmML9btsOO3nz0d6nbJsA_;
|
|
extern TNimType NTI__RxtHNU9a7qROetEL3oUnKzA_;
|
|
N_LIB_PRIVATE TNimType NTI__BYp09bQgV1UDe8gKDGtyK7Q_;
|
|
extern TNimType NTI__9bxnxao7MiiLOwO9aLAh9a3og_;
|
|
N_LIB_PRIVATE TNimType NTI__fxDVjFD559aINhArr9a0DVSg_;
|
|
extern TNimType NTI__AG5w5XCJjF9b05sfGM0qgkw_;
|
|
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
|
|
N_LIB_PRIVATE TNimType NTI__ecoffcajrsDrsmQ682SYrw_;
|
|
extern TNimType NTI__KmhVjTVGTaJmtA3BpwKNsw_;
|
|
N_LIB_PRIVATE TNimType NTI__S6edH5xvccB7X8MNpU6vZw_;
|
|
N_LIB_PRIVATE TNimType NTI__x2IwWHBQ2DnAlsdOBt0v9bA_;
|
|
N_LIB_PRIVATE TNimType NTI__lk9a1N5rz7U7kStl78tROfw_;
|
|
N_LIB_PRIVATE TNimType NTI__OXXy9av46ePON7Ddtio6XWQ_;
|
|
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
|
|
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_13, "Invalid name: \'", 15);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_14, "\'. It should match the regex: ^[a-zA-Z_:][a-zA-Z0-9_:]*$", 56);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_15, "gauge", 5);
|
|
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
|
|
N_LIB_PRIVATE TNimType NTI__NJW9b5IX4yrI8PD8jlFGU4A_;
|
|
N_LIB_PRIVATE TNimType NTI__DBrhwKUQMba9aRc9c9boA9a3qA_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_17, "Collector already registered.", 29);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_18, "process_info", 12);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_19, "CPU and memory usage", 20);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_22, "/proc/stat", 10);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_24, "btime", 5);
|
|
extern TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
|
|
extern NIM_CONST tyArray__pDfjTbtkTNjmi9bTcaNV32Q unitWeights__cpugRVHYEC9bUpLa71eZMsQ;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_36, "/proc/self/stat", 15);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_37, ") ", 2);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_38, "process_virtual_memory_bytes", 28);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_39, "process_resident_memory_bytes", 29);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_40, "process_start_time_seconds", 26);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_41, "process_cpu_seconds_total", 25);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_42, "/proc/self/limits", 17);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_44, "Max open files", 14);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_45, "process_max_fds", 15);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_46, "process_open_fds", 16);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_47, "/proc/self/fd", 13);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_49, ".", 1);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_50, "..", 2);
|
|
extern TNimType NTI__LCURwohbLBusrL8hdCnvng_;
|
|
N_LIB_PRIVATE TNimType NTI__HhwRVSXQRFCCEUo2zMKJVg_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_53, "\012", 1);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_54, "metrics error: ", 15);
|
|
N_LIB_PRIVATE TNimType NTI__ye1TmHw4DBmcStXbxVQlCg_;
|
|
N_LIB_PRIVATE TNimType NTI__Lyd39biUPMY5BcuojDhRizA_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_57, "nim_runtime_info", 16);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_58, "Nim runtime info", 16);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_60, "nim_gc_mem_bytes", 16);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_61, "nim_gc_mem_occupied_bytes", 25);
|
|
N_LIB_PRIVATE TNimType NTI__0hEbbYmlam6yzyW5MFo9cjg_;
|
|
extern TNimType NTI__S9agCYBinaYZnGWcjTdxclg_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_68, "nim_gc_heap_instance_occupied_bytes", 35);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_70, "type_name", 9);
|
|
static NIM_CONST struct { TGenericSeq Sup; NimStringDesc* data[1];} TM__TzgtsIsJxZkxBRfOAyNbPA_71 = {{1, 1 | NIM_STRLIT_FLAG}, {((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_70)}};static NIM_CONST tySequence__sM4lkSb7zS6F7OVMvW9cffQ* TM__TzgtsIsJxZkxBRfOAyNbPA_69 = ((tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)&TM__TzgtsIsJxZkxBRfOAyNbPA_71);
|
|
N_LIB_PRIVATE TNimType NTI__J0FzjuY02DFObU1sQZLwJA_;
|
|
extern TNimType NTI__M4na42GvebBMnI5wV9cYMxg_;
|
|
extern TNimType NTI__j0udO7e8EBNKZJ2hz9aEuDw_;
|
|
N_LIB_PRIVATE TNimType NTI__32NQFWYE4pXjMbCMA6kwZg_;
|
|
N_LIB_PRIVATE TNimType NTI__WKrmHyQpOVDY6vJXDZrAAA_;
|
|
N_LIB_PRIVATE TNimType NTI__r49avWAWSPUakdLF9aNZTcqg_;
|
|
N_LIB_PRIVATE TNimType NTI__1Ld21YGXyvbVguAJHWo4Xw_;
|
|
extern TNimType NTI__MkGXUPMSENeRDS7EppfLgA_;
|
|
N_LIB_PRIVATE TNimType NTI__tjoHijsTQMeE3IzlIv39cNg_;
|
|
extern TNimType NTI__3y2ZpqsTJLqdZvpC9a0rU2Q_;
|
|
N_LIB_PRIVATE TNimType NTI__t319a7QdvsfiaeHv2eY3PfA_;
|
|
N_LIB_PRIVATE TNimType NTI__SxQ4JtBIl1hYp3tJjAPlIA_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_88, "c", 1);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_89, "|@", 2);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_90, "$#:$#|$#$#\012", 11);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_91, "$# $# $#\012", 9);
|
|
static NIM_CONST tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw TM__TzgtsIsJxZkxBRfOAyNbPA_93 = {IL64(10), ((NI) 0)}
|
|
;
|
|
extern TNimType NTI__BeJgrOdDsczOwEWOZbRfKA_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_99, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/system/iterators.nim(122, 11) `len(a) == L` the l"
|
|
"ength of the seq changed while iterating over it", 175);
|
|
extern TNimType NTI__XEycrCsme5C8CVWAYEcdBQ_;
|
|
N_LIB_PRIVATE TNimType NTI__AcXA5LTiMbTyem2AVbTT5w_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_100, "Invalid label: \'", 16);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_101, "\'. It should match the regex: \'^[a-zA-Z_][a-zA-Z0-9_]*$\'.", 57);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_102, "__", 2);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_103, "\'. It should not start with \'__\'.", 33);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_106, "\'. It should not be one of: ", 28);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_108, "_created", 8);
|
|
N_LIB_PRIVATE TNimType NTI__cOLAOcl7p0BPhf5kvmQRqw_;
|
|
N_LIB_PRIVATE TNimType NTI__1zvu7qZyvvdj9bFNfopFZvQ_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_110, "counter", 7);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_111, "_total", 6);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_114, "Counter.inc() cannot be used with negative amounts.", 51);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_115, "The number of label values doesn\'t match the number of labels.", 62);
|
|
extern TNimType NTI__4X6IHW59aGB3JdQUUnNW6gQ_;
|
|
extern TNimType NTI__bKJmUghOMpekROxo4PqWpA_;
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_116, "Adding a new combination of label values from another thread th"
|
|
"an the one in which the collector was created is not allowed.", 124);
|
|
STRING_LITERAL(TM__TzgtsIsJxZkxBRfOAyNbPA_119, "g", 1);
|
|
N_LIB_PRIVATE tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* nameRegex__VdGTa5sOLr4NEknWrrMsWw;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
N_LIB_PRIVATE tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* labelRegex__EDG72OgAP1oseabZVjPXtw;
|
|
extern TNimType* nimTypeRoot;
|
|
N_LIB_PRIVATE tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* defaultRegistry__io1tPp0SUJ9acKTx5nDy47A;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__6ZcwK4fmpVKoZLPsJghTYg defaultHistogramBuckets__0FKrV73KsJZvPAhMg59a85w = {5.0000000000000001e-03,
|
|
1.0000000000000000e-02,
|
|
2.5000000000000001e-02,
|
|
5.0000000000000003e-02,
|
|
7.4999999999999997e-02,
|
|
1.0000000000000001e-01,
|
|
2.5000000000000000e-01,
|
|
5.0000000000000000e-01,
|
|
7.5000000000000000e-01,
|
|
1.0000000000000000e+00,
|
|
2.5000000000000000e+00,
|
|
5.0000000000000000e+00,
|
|
7.5000000000000000e+00,
|
|
1.0000000000000000e+01,
|
|
INF}
|
|
;
|
|
N_LIB_PRIVATE tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* processInfo__9ae9coqs2Om6SLyjZKc7B4eg;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
extern NIM_THREADVAR TSafePoint* excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
N_LIB_PRIVATE NF btime__hsWDV65avSzVars7W1fDjw = 0.0;
|
|
N_LIB_PRIVATE NF ticks__9cgUEWIhOljaWkbRwQ4f3yg;
|
|
N_LIB_PRIVATE NF pagesize__1p7VzA3d29bbd29aps9b7nu0w;
|
|
N_LIB_PRIVATE NimStringDesc* line__1HmhgWX8r5Uka69c1tEb7Dg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
|
|
N_LIB_PRIVATE tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* runtimeInfo__CLx3H4r1QCm6vab9b01sZSg;
|
|
extern TNimType strDesc__D0UzA4zsDu5tgpJQ9a9clXPg;
|
|
N_LIB_PRIVATE tyObject_Thread__j0udO7e8EBNKZJ2hz9aEuDw httpServerThread__vLh1tKGgIw5xK3YKTGr2xg;
|
|
N_LIB_PRIVATE tySequence__1Ld21YGXyvbVguAJHWo4Xw* exportBackends__w09cbyPDOIRHq39bzNEgEnLA;
|
|
N_LIB_PRIVATE pthread_mutex_t exportBackendsLock__4QL1ImXA1842w9aAj5qG2rg;
|
|
N_LIB_PRIVATE tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ exportChan__Y9bSsqXOvK4gavMDqtF9beUQ;
|
|
N_LIB_PRIVATE tyObject_Thread__YRlh9cu9aRh0NFPkIQ9arDrLg exportThread__M6XK22VHPiZ0uUpbG6qkSQ;
|
|
N_LIB_PRIVATE tySequence__tjoHijsTQMeE3IzlIv39cNg* sockets__BAoJYsOAbSs9bhU3dAMgcOw;
|
|
N_LIB_PRIVATE tySequence__t319a7QdvsfiaeHv2eY3PfA* lastConnectionTime__kWuM74v4v9blsc6h56CQP3w;
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_2)(void) {
|
|
nimGCvisit((void*)nameRegex__VdGTa5sOLr4NEknWrrMsWw, 0);}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_4)(void) {
|
|
nimGCvisit((void*)labelRegex__EDG72OgAP1oseabZVjPXtw, 0);}
|
|
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
static N_INLINE(NI, emarkamp___Bho3MSI0G3qbEZZcjdigaQhashes)(NI h, NI val) { NI result; NU h_2; NU val_2; NU res; result = (NI)0;
|
|
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
h_2 = ((NU) (h));
|
|
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
val_2 = ((NU) (val));
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)((NU64)(h_2) + (NU64)(val_2));
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)((NU64)(res) + (NU64)((NU)((NU64)(res) << (NU64)(((NI) 10)))));
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)(res ^ (NU)((NU64)(res) >> (NU64)(((NI) 6))));
|
|
#line 61 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
result = ((NI) (res)); return result;}
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
static N_INLINE(NI, emarkdollar___1VtZEcAzbCzFoJje5ex9aKwhashes)(NI h) { NI result; NU h_2; NU res; result = (NI)0;
|
|
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
h_2 = ((NU) (h));
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)((NU64)(h_2) + (NU64)((NU)((NU64)(h_2) << (NU64)(((NI) 3)))));
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)(res ^ (NU)((NU64)(res) >> (NU64)(((NI) 11))));
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
res = (NU)((NU64)(res) + (NU64)((NU)((NU64)(res) << (NU64)(((NI) 15)))));
|
|
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/hashes.nim"
|
|
result = ((NI) (res)); return result;}
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, hash__F9cmFKOoU1TqQqFADnwUDtA)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector) { NI result; NI T1_; result = (NI)0;
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (NI)0; T1_ = hash__6PCYkKlCNhq9cnRLnqWKkwQ((*collector).name);
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = emarkamp___Bho3MSI0G3qbEZZcjdigaQhashes(result, T1_); { NimStringDesc* label; NI i; NI L; NI T3_; label = (NimStringDesc*)0;
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i = ((NI) 0);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T3_ = ((*collector).labels ? (*collector).labels->Sup.len : 0); L = T3_; {
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI T6_; NI TM__TzgtsIsJxZkxBRfOAyNbPA_6;
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i < L)) goto LA5;
|
|
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)((*collector).labels ? (*collector).labels->Sup.len : 0)){ raiseIndexError2(i,((*collector).labels ? (*collector).labels->Sup.len : 0)-1); } label = (*collector).labels->data[i];
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_ = (NI)0; T6_ = hash__6PCYkKlCNhq9cnRLnqWKkwQ(label);
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = emarkamp___Bho3MSI0G3qbEZZcjdigaQhashes(result, T6_);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_6)) { raiseOverflow(); }; i = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_6);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{ NI T9_;
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T9_ = ((*collector).labels ? (*collector).labels->Sup.len : 0); if (!!((T9_ == L))) goto LA10_;
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_7));
|
|
}
|
|
LA10_: ;
|
|
} LA5: ;
|
|
}
|
|
}
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = emarkdollar___1VtZEcAzbCzFoJje5ex9aKwhashes(result); return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__TBCqhdRln3R9c9aowGiwnZow)(void* p, NI op) {
|
|
tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* a;
|
|
a = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)p;
|
|
nimGCvisit((void*)(*a).name, op); nimGCvisit((void*)(*a).labels, op); nimGCvisit((void*)(*a).labelValues, op);}
|
|
static N_NIMCALL(void, Marker_tySequence__VodmML9btsOO3nz0d6nbJsA)(void* p, NI op) {
|
|
tySequence__VodmML9btsOO3nz0d6nbJsA* a;
|
|
NI T1_; a = (tySequence__VodmML9btsOO3nz0d6nbJsA*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_], op); }
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__muUtV6bv9ckc9cbIXLcOzIEg)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result) {{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
genericSeqAssign((&(*Result).data), (*collector).metrics.data, (&NTI__RxtHNU9a7qROetEL3oUnKzA_)); (*Result).counter = (*collector).metrics.counter; (*Result).first = (*collector).metrics.first; (*Result).last = (*collector).metrics.last; goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
}
|
|
static N_NIMCALL(void, Marker_tyRef__ecoffcajrsDrsmQ682SYrw)(void* p, NI op) {
|
|
tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* a;
|
|
a = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)p;
|
|
nimGCvisit((void*)(*a).name, op); nimGCvisit((void*)(*a).help, op); nimGCvisit((void*)(*a).typ, op); nimGCvisit((void*)(*a).labels, op); nimGCvisit((void*)(*a).metrics.data, op);}
|
|
static N_NIMCALL(void, Marker_tyRef__S6edH5xvccB7X8MNpU6vZw)(void* p, NI op) {
|
|
tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* a;
|
|
NI T1_; a = (tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*)p;
|
|
T1_ = (NI)0; nimGCvisit((void*)(*a).collectors.data, op);}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_11)(void) {
|
|
nimGCvisit((void*)defaultRegistry__io1tPp0SUJ9acKTx5nDy47A, 0);}
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
static N_INLINE(void, initLock__Mz9ax9a7rBFxTQq0g0dLnxAwlocks)(pthread_mutex_t* lock) {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pthread_mutex_init(lock, NIM_NIL);
|
|
}
|
|
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*, newRegistry__9aGaV6ZlOG1kf02BLhoxenA)(void) { tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* result; result = (tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*)0;
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = (tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*) newObj((&NTI__S6edH5xvccB7X8MNpU6vZw_), sizeof(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q)); (*result).Sup.m_type = (&NTI__BYp09bQgV1UDe8gKDGtyK7Q_);
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initLock__Mz9ax9a7rBFxTQq0g0dLnxAwlocks((&(*result).lock));
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
init__9bnOyDxN2xcfkMIfkmQokyA((&(*result).collectors), ((NI) 64));
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__OXXy9av46ePON7Ddtio6XWQ)(void* p, NI op) {
|
|
tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* a;
|
|
a = (tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.name, op); nimGCvisit((void*)(*a).Sup.Sup.help, op); nimGCvisit((void*)(*a).Sup.Sup.typ, op); nimGCvisit((void*)(*a).Sup.Sup.labels, op); nimGCvisit((void*)(*a).Sup.Sup.metrics.data, op);}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_12)(void) {
|
|
nimGCvisit((void*)processInfo__9ae9coqs2Om6SLyjZKc7B4eg, 0);}
|
|
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) { NCSTRING result; result = (NCSTRING)0;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = (s == NIM_NIL); if (T3_) goto LA4_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
T3_ = ((*s).Sup.len == ((NI) 0)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
result = ""; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
result = ((NCSTRING) ((*s).data)); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
static N_INLINE(NI, find__gAVr3SrfAX5A4KBIYVfR9aAre)(NimStringDesc* s, tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* pattern, NI start) { NI result; result = (NI)0;
|
|
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
result = find__QwZ5hFD5E2v9cPFehqKJVXg(nimToCStringConv(s), pattern, start, (s ? s->Sup.len : 0)); return result;}
|
|
|
|
#line 414 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
static N_INLINE(NIM_BOOL, contains__ATpcLUBGRWa2duwyoHgYLAre)(NimStringDesc* s, tyObject_RegexDesc__jxMAPyr9aBYX9b0g7iZ2E8zw* pattern, NI start) { NIM_BOOL result; NI T1_;{ result = (NIM_BOOL)0;
|
|
#line 416 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 416 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 416 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 416 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
|
|
#line 416 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/impure/re.nim"
|
|
T1_ = (NI)0; T1_ = find__gAVr3SrfAX5A4KBIYVfR9aAre(s, pattern, start); result = (((NI) 0) <= T1_); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
|
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest).Sup.len += (*src).Sup.len; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, validateName__tMzz1A6SblAbPUBgpjhjDA)(NimStringDesc* name) {
|
|
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T3_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T6_; NimStringDesc* T7_;
|
|
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = contains__ATpcLUBGRWa2duwyoHgYLAre(name, nameRegex__VdGTa5sOLr4NEknWrrMsWw, ((NI) 0)); if (!!(T3_)) goto LA4_;
|
|
T6_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T6_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T6_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T6_).Sup.Sup.name = "ValueError";
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = (NimStringDesc*)0; T7_ = rawNewString((name ? name->Sup.len : 0) + 71);appendString(T7_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_13));appendString(T7_, name);appendString(T7_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_14)); asgnRef((void**) (&(*T6_).Sup.Sup.message), T7_); asgnRef((void**) (&(*T6_).Sup.Sup.parent), NIM_NIL);
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T6_, "ValueError", "validateName", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 153); }
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
(*s).prev = excHandler__rqLlY5bs9atDw2OXYqJEn5g;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = s;}
|
|
static N_NIMCALL(void, Marker_tyRef__DBrhwKUQMba9aRc9c9boA9a3qA)(void* p, NI op) {
|
|
tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A* a;
|
|
a = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.up, op);}
|
|
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popSafePoint)(void) {
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
excHandler__rqLlY5bs9atDw2OXYqJEn5g = (*excHandler__rqLlY5bs9atDw2OXYqJEn5g).prev;}
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__rztIrLDfsFYpn9bx4lj6LKA)(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_16;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
acquire__9bDG9bIkA6DtNcXVdL7bnLvg((&(*registry).lock));
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_16); TM__TzgtsIsJxZkxBRfOAyNbPA_16.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_16.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_16.status == 0) { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T10_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T4_; NIM_BOOL T5_; tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A* T8_; NimStringDesc* T9_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T4_ = &collector->Sup.Sup;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = contains__9aTCSQ11tSJ9cydlWIG9aPteg((&(*registry).collectors), T4_); if (!T5_) goto LA6_;
|
|
T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*)0; T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*) newObj((&NTI__DBrhwKUQMba9aRc9c9boA9a3qA_), sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A)); (*T8_).Sup.Sup.Sup.m_type = (&NTI__NJW9b5IX4yrI8PD8jlFGU4A_); (*T8_).Sup.Sup.name = "RegistrationError"; T9_ = (NimStringDesc*)0; T9_ = (*T8_).Sup.Sup.message; (*T8_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_17)); if (T9_) nimGCunrefNoCycle(T9_); asgnRef((void**) (&(*T8_).Sup.Sup.parent), NIM_NIL);
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T8_, "RegistrationError", "register", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 281); }
|
|
LA6_: ;
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T10_ = &collector->Sup.Sup;
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
incl__9b49bS7GqvqpN0Q3MGneD7ZA((&(*registry).collectors), T10_);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
release__9bDG9bIkA6DtNcXVdL7bnLvg_2((&(*registry).lock));
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_16.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_16.status != 0) reraiseException();}
|
|
|
|
#line 815 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*, newProcessInfo__qma07NyTGNiidpA2dIReew)(NimStringDesc* name, NimStringDesc* help, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* result; tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* T1_; NimStringDesc* T2_; NimStringDesc* T3_; NimStringDesc* T4_; result = (tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*)0;
|
|
#line 816 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 816 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateName__tMzz1A6SblAbPUBgpjhjDA(name);
|
|
|
|
#line 817 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*)0; T1_ = (tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*) newObj((&NTI__OXXy9av46ePON7Ddtio6XWQ_), sizeof(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw)); (*T1_).Sup.Sup.Sup.m_type = (&NTI__lk9a1N5rz7U7kStl78tROfw_); T2_ = (NimStringDesc*)0; T2_ = (*T1_).Sup.Sup.name; (*T1_).Sup.Sup.name = copyStringRC1(name); if (T2_) nimGCunrefNoCycle(T2_); T3_ = (NimStringDesc*)0; T3_ = (*T1_).Sup.Sup.help; (*T1_).Sup.Sup.help = copyStringRC1(help); if (T3_) nimGCunrefNoCycle(T3_); T4_ = (NimStringDesc*)0; T4_ = (*T1_).Sup.Sup.typ; (*T1_).Sup.Sup.typ = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_15)); if (T4_) nimGCunrefNoCycle(T4_);
|
|
#line 820 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 820 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T1_).Sup.Sup.creationThreadId = getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2(); result = T1_;
|
|
#line 821 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 821 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
register__rztIrLDfsFYpn9bx4lj6LKA(result, registry);
|
|
return result;}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_21)(void) {
|
|
nimGCvisit((void*)line__1HmhgWX8r5Uka69c1tEb7Dg, 0);}
|
|
|
|
#line 2292 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, nimBorrowCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2295 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
static N_INLINE(void, popCurrentException)(void) {
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/excpt.nim"
|
|
asgnRef((void**) (&currException__9bVPeDJlYTi9bQApZpfH8wjg), (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up);}
|
|
|
|
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
static N_INLINE(NIM_BOOL, nimDivInt64)(NI64 a, NI64 b, NI64* res) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (a == (IL64(-9223372036854775807) - IL64(1))); if (!(T3_)) goto LA4_;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (b == IL64(-1)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
(*res) = (NI64)(a / b); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 449 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
static N_INLINE(NI64, convert__2z1a0DRE31bT73xgVvBfQAtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI64 quantity) { NI64 result; result = (NI64)0;
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
{ NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_25; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_26;
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (!(unitFrom < unitTo)) goto LA3_;
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], &TM__TzgtsIsJxZkxBRfOAyNbPA_25)) { raiseOverflow(); }; if ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_25) == 0){ raiseDivByZero(); } if (nimDivInt64(quantity, (NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_25), &TM__TzgtsIsJxZkxBRfOAyNbPA_26)) { raiseOverflow(); }; result = (NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_26); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_27; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_28;
|
|
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], &TM__TzgtsIsJxZkxBRfOAyNbPA_27)) { raiseOverflow(); }; if (nimMulInt64((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_27), quantity, &TM__TzgtsIsJxZkxBRfOAyNbPA_28)) { raiseOverflow(); }; result = (NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_28); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 449 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
static N_INLINE(NI, convert__bBJ7N1GpubC85YlnXz3nHgtimes)(tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitFrom, tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ unitTo, NI quantity) { NI result; result = (NI)0;
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
{ NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_29; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_30;
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (!(unitFrom < unitTo)) goto LA3_;
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], &TM__TzgtsIsJxZkxBRfOAyNbPA_29)) { raiseOverflow(); }; if ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_29) == 0){ raiseDivByZero(); } if (nimDivInt64(((NI64) (quantity)), (NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_29), &TM__TzgtsIsJxZkxBRfOAyNbPA_30)) { raiseOverflow(); }; if (((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_30)) < ((NI) 0) || ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_30)) > ((NI) 999999999)){ raiseRangeErrorI((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_30), ((NI) 0), ((NI) 999999999)); } result = ((NI) ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_30))); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_31; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_32;
|
|
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
|
|
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/times.nim"
|
|
if (unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0] == 0){ raiseDivByZero(); } if (nimDivInt64(unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitFrom)- 0], unitWeights__cpugRVHYEC9bUpLa71eZMsQ[(unitTo)- 0], &TM__TzgtsIsJxZkxBRfOAyNbPA_31)) { raiseOverflow(); }; if (nimMulInt64((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_31), ((NI64) (quantity)), &TM__TzgtsIsJxZkxBRfOAyNbPA_32)) { raiseOverflow(); }; if (((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_32)) < ((NI) 0) || ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_32)) > ((NI) 999999999)){ raiseRangeErrorI((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_32), ((NI) 0), ((NI) 999999999)); } result = ((NI) ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_32))); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI64, toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA)(tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q time) { NI64 result; NI64 T1_; NI64 T2_; NI T3_; NI T4_; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_33;{ result = (NI64)0;
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (NI64)0; T1_ = toUnix__mXmxlr1pBpariZiJTjytHg(time);
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = (NI64)0; T2_ = convert__2z1a0DRE31bT73xgVvBfQAtimes(((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 3), ((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 2), T1_);
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (NI)0; T3_ = nanosecond__w9bWusm7fy39b4s5K9azEA0RA(time);
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (NI)0; T4_ = convert__bBJ7N1GpubC85YlnXz3nHgtimes(((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 0), ((tyEnum_TimeUnit__52alPn04ElUUbqLeok9b3PQ) 2), T3_); if (nimAddInt64(T2_, ((NI64) (T4_)), &TM__TzgtsIsJxZkxBRfOAyNbPA_33)) { raiseOverflow(); }; result = (NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_33); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 2514 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NimStringDesc*, X5BX5D___j0Z1d16G1eC5eFkDa00ZFwsystem)(NimStringDesc** s, NI sLen_0, NI i) { NimStringDesc* result; NI TM__TzgtsIsJxZkxBRfOAyNbPA_35; result = (NimStringDesc*)0;
|
|
#line 2515 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2515 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2515 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimSubInt(sLen_0, i, &TM__TzgtsIsJxZkxBRfOAyNbPA_35)) { raiseOverflow(); }; if ((NU)((NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_35)) >= (NU)(sLen_0)){ raiseIndexError2((NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_35),sLen_0-1); } result = copyString(s[(NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_35)]); return result;}
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0;
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
result = memcmp(a, b, ((size_t) (size))); return result;}
|
|
|
|
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0;
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;}
|
|
|
|
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
alen = (a ? a->Sup.len : 0);
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
blen = (b ? b->Sup.len : 0);
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
{
|
|
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
if (!(alen == blen)) goto LA3_;
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
{
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
if (!(alen == ((NI) 0))) goto LA7_;
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
result = NIM_TRUE; goto BeforeRet_;
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
|
|
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_;
|
|
}
|
|
LA3_: ;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 1144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
static N_INLINE(NIM_BOOL, dirExists__AWUc3v8Mlad7tvNYF3Ak8Qos)(NimStringDesc* dir) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 1145 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
result = nosexistsDir(dir); return result;}
|
|
static N_NIMCALL(void, Marker_tySequence__HhwRVSXQRFCCEUo2zMKJVg)(void* p, NI op) {
|
|
tySequence__HhwRVSXQRFCCEUo2zMKJVg* a;
|
|
NI T1_; a = (tySequence__HhwRVSXQRFCCEUo2zMKJVg*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_].Field1, op); }
|
|
}
|
|
|
|
#line 2288 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(Exception*, getCurrentException)(void) { Exception* result; result = (Exception*)0;
|
|
#line 2290 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = currException__9bVPeDJlYTi9bQApZpfH8wjg; return result;}
|
|
|
|
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x, NI xLen_0) { { NimStringDesc* i; NI i_2; i = (NimStringDesc*)0;
|
|
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__TzgtsIsJxZkxBRfOAyNbPA_52;
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < xLen_0)) goto LA3;
|
|
|
|
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
if ((NU)(i_2) >= (NU)(xLen_0)){ raiseIndexError2(i_2,xLen_0-1); } i = x[i_2];
|
|
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
write__PArlm09bKklm2BLsCg6YtaA(f, i);
|
|
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_52)) { raiseOverflow(); }; i_2 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_52); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
write__PArlm09bKklm2BLsCg6YtaA(f, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_53));
|
|
}
|
|
|
|
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, printError__Ocg9bqNMxyiGBDEaGvXNN1Q)(NimStringDesc* msg) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_51;
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_51); TM__TzgtsIsJxZkxBRfOAyNbPA_51.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_51.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_51.status == 0) { tyArray__nHXaesL0DJZHyVS07ARPRA T2_; NimStringDesc* T3_;
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (NimStringDesc*)0; T3_ = rawNewString((msg ? msg->Sup.len : 0) + 15);appendString(T3_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_54));appendString(T3_, msg); T2_[0] = T3_;
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T2_, 1);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) { TM__TzgtsIsJxZkxBRfOAyNbPA_51.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_51.status != 0) reraiseException();}
|
|
|
|
#line 840 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__vDtthGBQXbm9crskYLJhYmw)(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T1_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T2_; tySequence__VodmML9btsOO3nz0d6nbJsA* T3_; TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_34;{
|
|
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T1_);
|
|
#line 842 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 842 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initOrderedTable__rxOm0EdktnR146KLsyIElg(((NI) 64), Result);
|
|
|
|
#line 843 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T2_ = NIM_NIL; T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T3_ = NIM_NIL;
|
|
#line 843 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg(Result, T2_, T3_);
|
|
|
|
#line 845 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_34); TM__TzgtsIsJxZkxBRfOAyNbPA_34.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_34.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_34.status == 0) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* selfStat; NimStringDesc* T9_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T10_; NimStringDesc* T11_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T12_; tySequence__VodmML9btsOO3nz0d6nbJsA* T13_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T14_; NimStringDesc* T15_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T16_; NimStringDesc* T17_; NF T18_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T19_; NimStringDesc* T20_; NF T21_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T22_; NimStringDesc* T23_; NF T24_; NF T25_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T44_; tySequence__VodmML9btsOO3nz0d6nbJsA** T45_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T46_; NimStringDesc* T47_; tySequence__HhwRVSXQRFCCEUo2zMKJVg* volatile resultX60gensym34820220_; NI T116_; NI T117_;
|
|
#line 846 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{
|
|
#line 846 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(btime__hsWDV65avSzVars7W1fDjw == 0.0)) goto LA7_;
|
|
|
|
#line 848 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
popSafePoint(); goto BeforeRet_;
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T9_ = (NimStringDesc*)0; T9_ = readFile__4PGnM9bWmsH0Nu7dnr3XzgA(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_36));
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T10_ = nsuSplitString(T9_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_37), ((NI) -1));
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (NimStringDesc*)0; T11_ = X5BX5D___j0Z1d16G1eC5eFkDa00ZFwsystem(T10_->data, (T10_ ? T10_->Sup.len : 0), ((NI) 1));
|
|
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
selfStat = nsuSplitChar(T11_, 32, ((NI) -1));
|
|
#line 855 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T12_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T12_ = NIM_NIL;
|
|
#line 855 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T13_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T13_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*) newSeq((&NTI__VodmML9btsOO3nz0d6nbJsA_), 4); T14_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T14_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T14_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T15_ = (NimStringDesc*)0; T15_ = (*T14_).name; (*T14_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_38)); if (T15_) nimGCunrefNoCycle(T15_);
|
|
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(((NI) 20)) >= (NU)(selfStat ? selfStat->Sup.len : 0)){ raiseIndexError2(((NI) 20),(selfStat ? selfStat->Sup.len : 0)-1); }
|
|
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T14_).value = nsuParseFloat(selfStat->data[((NI) 20)]); (*T14_).timestamp = timestamp; asgnRef((void**) (&T13_->data[0]), T14_); T16_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T16_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T16_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T17_ = (NimStringDesc*)0; T17_ = (*T16_).name; (*T16_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_39)); if (T17_) nimGCunrefNoCycle(T17_);
|
|
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(((NI) 21)) >= (NU)(selfStat ? selfStat->Sup.len : 0)){ raiseIndexError2(((NI) 21),(selfStat ? selfStat->Sup.len : 0)-1); }
|
|
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T18_ = (NF)0; T18_ = nsuParseFloat(selfStat->data[((NI) 21)]); (*T16_).value = ((NF)(T18_) * (NF)(pagesize__1p7VzA3d29bbd29aps9b7nu0w)); (*T16_).timestamp = timestamp; asgnRef((void**) (&T13_->data[1]), T16_); T19_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T19_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T19_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T20_ = (NimStringDesc*)0; T20_ = (*T19_).name; (*T19_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_40)); if (T20_) nimGCunrefNoCycle(T20_);
|
|
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(((NI) 19)) >= (NU)(selfStat ? selfStat->Sup.len : 0)){ raiseIndexError2(((NI) 19),(selfStat ? selfStat->Sup.len : 0)-1); }
|
|
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T21_ = (NF)0; T21_ = nsuParseFloat(selfStat->data[((NI) 19)]); (*T19_).value = ((NF)(((NF)(T21_) / (NF)(ticks__9cgUEWIhOljaWkbRwQ4f3yg))) + (NF)(btime__hsWDV65avSzVars7W1fDjw)); (*T19_).timestamp = timestamp; asgnRef((void**) (&T13_->data[2]), T19_); T22_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T22_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T22_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T23_ = (NimStringDesc*)0; T23_ = (*T22_).name; (*T22_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_41)); if (T23_) nimGCunrefNoCycle(T23_);
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(((NI) 11)) >= (NU)(selfStat ? selfStat->Sup.len : 0)){ raiseIndexError2(((NI) 11),(selfStat ? selfStat->Sup.len : 0)-1); }
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T24_ = (NF)0; T24_ = nsuParseFloat(selfStat->data[((NI) 11)]);
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(((NI) 12)) >= (NU)(selfStat ? selfStat->Sup.len : 0)){ raiseIndexError2(((NI) 12),(selfStat ? selfStat->Sup.len : 0)-1); }
|
|
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T25_ = (NF)0; T25_ = nsuParseFloat(selfStat->data[((NI) 12)]); (*T22_).value = ((NF)(((NF)(T24_) + (NF)(T25_))) / (NF)(ticks__9cgUEWIhOljaWkbRwQ4f3yg)); (*T22_).timestamp = timestamp; asgnRef((void**) (&T13_->data[3]), T22_);
|
|
#line 855 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg(Result, T12_, T13_);
|
|
{ NimStringDesc* line; FILE* f; TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_43; line = (NimStringDesc*)0;
|
|
#line 755 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 755 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
f = open__cb1k9citqyT9a9brBSJAz8pkg(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_42), ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) 8000));
|
|
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_43); TM__TzgtsIsJxZkxBRfOAyNbPA_43.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_43.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_43.status == 0) { NimStringDesc* res;
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
res = rawNewString(((NI) 80)); {
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
while (1) { NIM_BOOL T30_;
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
T30_ = (NIM_BOOL)0; T30_ = readLine__FbqDHP9bu7nqCh9c04dnSOxw(f, (&res)); if (!T30_) goto LA29;
|
|
|
|
#line 878 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
line = res;
|
|
#line 879 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T33_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T36_; tySequence__VodmML9btsOO3nz0d6nbJsA** T37_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T38_; NimStringDesc* T39_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T40_; NI T41_;
|
|
#line 879 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 879 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T33_ = (NIM_BOOL)0; T33_ = nsuStartsWith(line, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_44)); if (!T33_) goto LA34_;
|
|
|
|
#line 880 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 880 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T36_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T36_ = NIM_NIL;
|
|
#line 880 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T37_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T37_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw(Result, T36_); T38_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T38_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T38_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T39_ = (NimStringDesc*)0; T39_ = (*T38_).name; (*T38_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_45)); if (T39_) nimGCunrefNoCycle(T39_);
|
|
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T40_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T40_ = nsuSplitWhitespace(line, ((NI) -1)); if ((NU)(((NI) 3)) >= (NU)(T40_ ? T40_->Sup.len : 0)){ raiseIndexError2(((NI) 3),(T40_ ? T40_->Sup.len : 0)-1); }
|
|
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T38_).value = nsuParseFloat(T40_->data[((NI) 3)]); (*T38_).timestamp = timestamp; unsureAsgnRef((void**) (&(*T37_)), (tySequence__VodmML9btsOO3nz0d6nbJsA*) incrSeqV3((TGenericSeq*)((*T37_)), (&NTI__VodmML9btsOO3nz0d6nbJsA_))); T41_ = (*T37_)->Sup.len++; asgnRef((void**) (&(*T37_)->data[T41_]), T38_); popSafePoint();
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
close__fU6ZlJAtQ9bre04EDZLdGsA_3(f);
|
|
|
|
#line 887 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto LA26;
|
|
}
|
|
LA34_: ;
|
|
} LA29: ;
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
close__fU6ZlJAtQ9bre04EDZLdGsA_3(f);
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_43.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_43.status != 0) reraiseException(); } LA26: ;
|
|
|
|
#line 889 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 889 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T44_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T44_ = NIM_NIL;
|
|
#line 889 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T45_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T45_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw(Result, T44_); T46_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T46_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T46_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T47_ = (NimStringDesc*)0; T47_ = (*T46_).name; (*T46_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_46)); if (T47_) nimGCunrefNoCycle(T47_);
|
|
#line 892 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim"
|
|
resultX60gensym34820220_ = NIM_NIL; { tyTuple__LCURwohbLBusrL8hdCnvng xX60gensym34820221_; DIR* d; nimZeroMem((void*)(&xX60gensym34820221_), sizeof(tyTuple__LCURwohbLBusrL8hdCnvng));
|
|
#line 2092 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2092 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
d = opendir("/proc/self/fd");
|
|
#line 2093 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2093 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(d == NIM_NIL)) goto LA51_;
|
|
|
|
#line 2094 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI32 T57_; if (!NIM_FALSE) goto LA55_;
|
|
|
|
#line 2095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T57_ = (NI32)0; T57_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 2095 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
raiseOSError__CWyPYlyH9a6rAuZckFyVxPA(T57_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_47));
|
|
}
|
|
LA55_: ;
|
|
}
|
|
goto LA49_;
|
|
LA51_: ;
|
|
{ TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_48;
|
|
#line 2097 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_48); TM__TzgtsIsJxZkxBRfOAyNbPA_48.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_48.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_48.status == 0) { {
|
|
#line 2098 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
while (1) { { struct dirent* x; NimStringDesc* y;
|
|
#line 2099 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2099 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
x = readdir(d);
|
|
#line 2100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!(x == NIM_NIL)) goto LA65_;
|
|
|
|
#line 2100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA60;
|
|
}
|
|
LA65_: ;
|
|
|
|
#line 2102 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2102 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
y = cstrToNimstr(((NCSTRING) ((*x).d_name)));
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T69_; struct stat s; NimStringDesc* path; tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg k; NI T111_; NimStringDesc* T112_;
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T69_ = (NIM_BOOL)0;
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T69_ = !(eqStrings(y, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_49))); if (!(T69_)) goto LA70_;
|
|
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T69_ = !(eqStrings(y, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_50))); LA70_: ;
|
|
if (!T69_) goto LA71_;
|
|
nimZeroMem((void*)(&s), sizeof(struct stat));
|
|
#line 2107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
path = slash___gEyhbzZ1UcxyenWRLJRXNQ(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_47), y);
|
|
#line 2108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ if (!NIM_TRUE) goto LA75_;
|
|
|
|
#line 2109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
y = copyString(path); }
|
|
LA75_: ;
|
|
|
|
#line 2110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = ((tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg) 0);
|
|
#line 2114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NI T95_; NimStringDesc* T96_;
|
|
#line 2114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!!(((*x).d_type == ((NI8) 0)))) goto LA79_;
|
|
|
|
#line 2115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!((*x).d_type == ((NI8) 4))) goto LA83_;
|
|
|
|
#line 2115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = ((tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg) 2); }
|
|
LA83_: ;
|
|
|
|
#line 2116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{
|
|
#line 2116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
if (!((*x).d_type == ((NI8) 10))) goto LA87_;
|
|
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T91_;
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T91_ = (NIM_BOOL)0; T91_ = dirExists__AWUc3v8Mlad7tvNYF3Ak8Qos(path); if (!T91_) goto LA92_;
|
|
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = ((tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg) 3); }
|
|
goto LA89_;
|
|
LA92_: ;
|
|
{
|
|
#line 2118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = ((tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg) 1); }
|
|
LA89_: ;
|
|
}
|
|
LA87_: ;
|
|
|
|
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim"
|
|
xX60gensym34820221_.Field0 = k; xX60gensym34820221_.Field1 = copyString(y);
|
|
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim"
|
|
resultX60gensym34820220_ = (tySequence__HhwRVSXQRFCCEUo2zMKJVg*) incrSeqV3((TGenericSeq*)(resultX60gensym34820220_), (&NTI__HhwRVSXQRFCCEUo2zMKJVg_)); T95_ = resultX60gensym34820220_->Sup.len++; resultX60gensym34820220_->data[T95_].Field0 = xX60gensym34820221_.Field0; T96_ = (NimStringDesc*)0; T96_ = resultX60gensym34820220_->data[T95_].Field1; resultX60gensym34820220_->data[T95_].Field1 = copyStringRC1(xX60gensym34820221_.Field1); if (T96_) nimGCunrefNoCycle(T96_);
|
|
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA62;
|
|
}
|
|
LA79_: ;
|
|
|
|
#line 2122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ int T99_;
|
|
#line 2122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T99_ = (int)0; T99_ = lstat(nimToCStringConv(path), (&s)); if (!(T99_ < ((NI32) 0))) goto LA100_;
|
|
|
|
#line 2122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
goto LA60;
|
|
}
|
|
LA100_: ;
|
|
|
|
#line 2123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
{ NIM_BOOL T104_;
|
|
#line 2123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T104_ = (NIM_BOOL)0; T104_ = S_ISDIR(s.st_mode); if (!T104_) goto LA105_;
|
|
|
|
#line 2124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = ((tyEnum_PathComponent__9c1SIU9cO1wHcl09b703A9cDrg) 2); }
|
|
goto LA102_;
|
|
LA105_: ;
|
|
{ NIM_BOOL T108_;
|
|
#line 2125 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2125 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T108_ = (NIM_BOOL)0; T108_ = S_ISLNK(s.st_mode); if (!T108_) goto LA109_;
|
|
|
|
#line 2126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
k = getSymlinkFileKind__wTnLPNAWjgwVnuiJ9ax0ZGQ(path); }
|
|
goto LA102_;
|
|
LA109_: ;
|
|
LA102_: ;
|
|
|
|
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim"
|
|
xX60gensym34820221_.Field0 = k; xX60gensym34820221_.Field1 = copyString(y);
|
|
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sequtils.nim"
|
|
resultX60gensym34820220_ = (tySequence__HhwRVSXQRFCCEUo2zMKJVg*) incrSeqV3((TGenericSeq*)(resultX60gensym34820220_), (&NTI__HhwRVSXQRFCCEUo2zMKJVg_)); T111_ = resultX60gensym34820220_->Sup.len++; resultX60gensym34820220_->data[T111_].Field0 = xX60gensym34820221_.Field0; T112_ = (NimStringDesc*)0; T112_ = resultX60gensym34820220_->data[T111_].Field1; resultX60gensym34820220_->data[T111_].Field1 = copyStringRC1(xX60gensym34820221_.Field1); if (T112_) nimGCunrefNoCycle(T112_); }
|
|
LA71_: ;
|
|
} LA62: ;
|
|
}
|
|
} LA60: ;
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{ int T115_;
|
|
#line 2097 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2097 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
|
|
#line 2097 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/os.nim"
|
|
T115_ = (int)0; T115_ = closedir(d); (void)(T115_);
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_48.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_48.status != 0) reraiseException(); }
|
|
LA49_: ;
|
|
}
|
|
T116_ = (resultX60gensym34820220_ ? resultX60gensym34820220_->Sup.len : 0); (*T46_).value = ((NF) (T116_)); (*T46_).timestamp = timestamp; unsureAsgnRef((void**) (&(*T45_)), (tySequence__VodmML9btsOO3nz0d6nbJsA*) incrSeqV3((TGenericSeq*)((*T45_)), (&NTI__VodmML9btsOO3nz0d6nbJsA_))); T117_ = (*T45_)->Sup.len++; asgnRef((void**) (&(*T45_)->data[T117_]), T46_); popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* e; Exception* T120_; TM__TzgtsIsJxZkxBRfOAyNbPA_34.status = 0;
|
|
#line 896 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T120_ = (Exception*)0; T120_ = getCurrentException(); e = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T120_));
|
|
#line 897 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 897 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e).Sup.message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_34.status != 0) reraiseException(); }BeforeRet_: ;
|
|
}
|
|
static N_NIMCALL(void, Marker_tyRef__Lyd39biUPMY5BcuojDhRizA)(void* p, NI op) {
|
|
tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* a;
|
|
a = (tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.name, op); nimGCvisit((void*)(*a).Sup.Sup.help, op); nimGCvisit((void*)(*a).Sup.Sup.typ, op); nimGCvisit((void*)(*a).Sup.Sup.labels, op); nimGCvisit((void*)(*a).Sup.Sup.metrics.data, op);}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_55)(void) {
|
|
nimGCvisit((void*)runtimeInfo__CLx3H4r1QCm6vab9b01sZSg, 0);}
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__XE8XQtxVFfk7RrK6JqihhA)(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_56;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
acquire__9bDG9bIkA6DtNcXVdL7bnLvg((&(*registry).lock));
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_56); TM__TzgtsIsJxZkxBRfOAyNbPA_56.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_56.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_56.status == 0) { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T10_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T4_; NIM_BOOL T5_; tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A* T8_; NimStringDesc* T9_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T4_ = &collector->Sup.Sup;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = contains__9aTCSQ11tSJ9cydlWIG9aPteg((&(*registry).collectors), T4_); if (!T5_) goto LA6_;
|
|
T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*)0; T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*) newObj((&NTI__DBrhwKUQMba9aRc9c9boA9a3qA_), sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A)); (*T8_).Sup.Sup.Sup.m_type = (&NTI__NJW9b5IX4yrI8PD8jlFGU4A_); (*T8_).Sup.Sup.name = "RegistrationError"; T9_ = (NimStringDesc*)0; T9_ = (*T8_).Sup.Sup.message; (*T8_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_17)); if (T9_) nimGCunrefNoCycle(T9_); asgnRef((void**) (&(*T8_).Sup.Sup.parent), NIM_NIL);
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T8_, "RegistrationError", "register", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 281); }
|
|
LA6_: ;
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T10_ = &collector->Sup.Sup;
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
incl__9b49bS7GqvqpN0Q3MGneD7ZA((&(*registry).collectors), T10_);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
release__9bDG9bIkA6DtNcXVdL7bnLvg_2((&(*registry).lock));
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_56.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_56.status != 0) reraiseException();}
|
|
|
|
#line 906 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*, newRuntimeInfo__n8Vk39b23tItjO19a29cKN7kQ)(NimStringDesc* name, NimStringDesc* help, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* result; tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* T1_; NimStringDesc* T2_; NimStringDesc* T3_; NimStringDesc* T4_; result = (tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*)0;
|
|
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateName__tMzz1A6SblAbPUBgpjhjDA(name);
|
|
|
|
#line 908 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*)0; T1_ = (tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*) newObj((&NTI__Lyd39biUPMY5BcuojDhRizA_), sizeof(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg)); (*T1_).Sup.Sup.Sup.m_type = (&NTI__ye1TmHw4DBmcStXbxVQlCg_); T2_ = (NimStringDesc*)0; T2_ = (*T1_).Sup.Sup.name; (*T1_).Sup.Sup.name = copyStringRC1(name); if (T2_) nimGCunrefNoCycle(T2_); T3_ = (NimStringDesc*)0; T3_ = (*T1_).Sup.Sup.help; (*T1_).Sup.Sup.help = copyStringRC1(help); if (T3_) nimGCunrefNoCycle(T3_); T4_ = (NimStringDesc*)0; T4_ = (*T1_).Sup.Sup.typ; (*T1_).Sup.Sup.typ = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_15)); if (T4_) nimGCunrefNoCycle(T4_);
|
|
#line 911 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 911 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T1_).Sup.Sup.creationThreadId = getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2(); result = T1_;
|
|
#line 912 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 912 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
register__XE8XQtxVFfk7RrK6JqihhA(result, registry);
|
|
return result;}
|
|
|
|
#line 2860 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, eqeq___aqip9cmQIuefPKdd25wuEEwsystem)(NCSTRING x, NCSTRING y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
{
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (!(((void*) (x)) == ((void*) (y)))) goto LA3_;
|
|
|
|
#line 2865 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NIM_BOOL T6_;
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (NIM_BOOL)0;
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (x == 0); if (T6_) goto LA7_;
|
|
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T6_ = (y == 0); LA7_: ;
|
|
if (!T6_) goto LA8_;
|
|
|
|
#line 2866 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = NIM_FALSE; }
|
|
goto LA1_;
|
|
LA8_: ;
|
|
{ int T11_;
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2867 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T11_ = (int)0; T11_ = strcmp(x, y); result = (T11_ == ((NI32) 0)); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, colonanonymous___hGeHeKnt1teQPepcw0zjZA)(tyTuple__0hEbbYmlam6yzyW5MFo9cjg a, tyTuple__0hEbbYmlam6yzyW5MFo9cjg b) { NI result; NI TM__TzgtsIsJxZkxBRfOAyNbPA_66; result = (NI)0;
|
|
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (nimSubInt(b.Field1, a.Field1, &TM__TzgtsIsJxZkxBRfOAyNbPA_66)) { raiseOverflow(); }; result = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_66); return result;}
|
|
|
|
#line 917 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, collect__Qq7bkHwS70v9bHxXJ71vxZw)(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg* collector, tyObject_OrderedTable__AG5w5XCJjF9b05sfGM0qgkw* Result) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_; tySequence__VodmML9btsOO3nz0d6nbJsA* T2_; NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T3_; TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_59;
|
|
#line 918 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 918 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initOrderedTable__rxOm0EdktnR146KLsyIElg(((NI) 64), Result);
|
|
|
|
#line 919 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T1_ = NIM_NIL; T2_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T2_ = NIM_NIL;
|
|
#line 919 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg(Result, T1_, T2_);
|
|
|
|
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T3_);
|
|
#line 921 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_59); TM__TzgtsIsJxZkxBRfOAyNbPA_59.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_59.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_59.status == 0) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T5_; tySequence__VodmML9btsOO3nz0d6nbJsA** T6_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T7_; NimStringDesc* T8_; NI T9_; NI T10_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T11_; tySequence__VodmML9btsOO3nz0d6nbJsA** T12_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T13_; NimStringDesc* T14_; NI T15_; NI T16_; tyArray__NOM9buxzXBVs9bzjucQTh9cUQ heapSizes; NI volatile counter; tyProc__oeKKLB9aT2GBgHxIzVFZJKw T48_;
|
|
#line 923 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 923 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T5_ = NIM_NIL;
|
|
#line 923 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T6_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw(Result, T5_); T7_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T7_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T7_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T8_ = (NimStringDesc*)0; T8_ = (*T7_).name; (*T7_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_60)); if (T8_) nimGCunrefNoCycle(T8_);
|
|
#line 926 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 926 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T9_ = (NI)0; T9_ = getTotalMem__hrQB9bN29c1nR1E9cHqYcNcDA_3(); (*T7_).value = ((NF) (T9_)); (*T7_).timestamp = timestamp; unsureAsgnRef((void**) (&(*T6_)), (tySequence__VodmML9btsOO3nz0d6nbJsA*) incrSeqV3((TGenericSeq*)((*T6_)), (&NTI__VodmML9btsOO3nz0d6nbJsA_))); T10_ = (*T6_)->Sup.len++; asgnRef((void**) (&(*T6_)->data[T10_]), T7_);
|
|
#line 931 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 931 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T11_ = NIM_NIL;
|
|
#line 931 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T12_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T12_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw(Result, T11_); T13_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T13_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T13_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T14_ = (NimStringDesc*)0; T14_ = (*T13_).name; (*T13_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_61)); if (T14_) nimGCunrefNoCycle(T14_);
|
|
#line 934 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 934 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T15_ = (NI)0; T15_ = getOccupiedMem__hrQB9bN29c1nR1E9cHqYcNcDA(); (*T13_).value = ((NF) (T15_)); (*T13_).timestamp = timestamp; unsureAsgnRef((void**) (&(*T12_)), (tySequence__VodmML9btsOO3nz0d6nbJsA*) incrSeqV3((TGenericSeq*)((*T12_)), (&NTI__VodmML9btsOO3nz0d6nbJsA_))); T16_ = (*T12_)->Sup.len++; asgnRef((void**) (&(*T12_)->data[T16_]), T13_); nimZeroMem((void*)heapSizes, sizeof(tyArray__NOM9buxzXBVs9bzjucQTh9cUQ)); counter = (NI)0; { tyTuple__CseYFEs9b0bHYKI9bPdpm5CA data; TNimType* it; nimZeroMem((void*)(&data), sizeof(tyTuple__CseYFEs9b0bHYKI9bPdpm5CA));
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
{
|
|
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
if (!(strDesc__D0UzA4zsDu5tgpJQ9a9clXPg.nextType == NIM_NIL)) goto LA20_;
|
|
|
|
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
strDesc__D0UzA4zsDu5tgpJQ9a9clXPg.nextType = nimTypeRoot;
|
|
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
strDesc__D0UzA4zsDu5tgpJQ9a9clXPg.name = "string";
|
|
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
nimTypeRoot = (&strDesc__D0UzA4zsDu5tgpJQ9a9clXPg); }
|
|
LA20_: ;
|
|
|
|
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
it = nimTypeRoot; {
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
while (1) {
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
|
|
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
if (!!((it == NIM_NIL))) goto LA23;
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
{ NIM_BOOL T26_; NI TM__TzgtsIsJxZkxBRfOAyNbPA_62; NI volatile smallest; NIM_BOOL volatile dedupe;
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
T26_ = (NIM_BOOL)0;
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
T26_ = (((NI) 0) < (*it).instances); if (T26_) goto LA27_;
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
|
|
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
T26_ = !(((*it).sizes == ((NI) 0))); LA27_: ;
|
|
if (!T26_) goto LA28_;
|
|
|
|
#line 947 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
data.Field0 = (*it).name; data.Field1 = (*it).instances; data.Field2 = (*it).sizes;
|
|
#line 948 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (nimAddInt(counter, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_62)) { raiseOverflow(); }; counter = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_62);
|
|
#line 949 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
smallest = ((NI) 0);
|
|
#line 950 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
dedupe = NIM_FALSE; { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__TzgtsIsJxZkxBRfOAyNbPA_64;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 100))) goto LA32;
|
|
|
|
#line 951 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
i = i_2;
|
|
#line 952 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T35_; NI TM__TzgtsIsJxZkxBRfOAyNbPA_63;
|
|
#line 952 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) > (NU)(99)){ raiseIndexError2(i, 99); }
|
|
#line 952 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T35_ = (NIM_BOOL)0; T35_ = eqeq___aqip9cmQIuefPKdd25wuEEwsystem(heapSizes[(i)- 0].Field0, data.Field0); if (!T35_) goto LA36_;
|
|
|
|
#line 953 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) > (NU)(99)){ raiseIndexError2(i, 99); } if (nimAddInt(heapSizes[(i)- 0].Field1, data.Field2, &TM__TzgtsIsJxZkxBRfOAyNbPA_63)) { raiseOverflow(); }; heapSizes[(i)- 0].Field1 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_63);
|
|
#line 954 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
dedupe = NIM_TRUE;
|
|
#line 955 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto LA30;
|
|
}
|
|
LA36_: ;
|
|
|
|
#line 956 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{
|
|
#line 956 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) > (NU)(99)){ raiseIndexError2(i, 99); } if ((NU)(smallest) > (NU)(99)){ raiseIndexError2(smallest, 99); } if (!(heapSizes[(i)- 0].Field1 <= heapSizes[(smallest)- 0].Field1)) goto LA40_;
|
|
|
|
#line 957 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
smallest = i; }
|
|
LA40_: ;
|
|
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_64)) { raiseOverflow(); }; i_2 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_64); } LA32: ;
|
|
}
|
|
} LA30: ;
|
|
|
|
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T44_; NCSTRING colontmp_; NI colontmp__2;
|
|
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T44_ = (NIM_BOOL)0;
|
|
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T44_ = !(dedupe); if (!(T44_)) goto LA45_;
|
|
|
|
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(smallest) > (NU)(99)){ raiseIndexError2(smallest, 99); } T44_ = (heapSizes[(smallest)- 0].Field1 < data.Field2); LA45_: ;
|
|
if (!T44_) goto LA46_;
|
|
|
|
#line 959 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
colontmp_ = data.Field0;
|
|
#line 959 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
colontmp__2 = data.Field2; if ((NU)(smallest) > (NU)(99)){ raiseIndexError2(smallest, 99); }
|
|
#line 959 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
heapSizes[(smallest)- 0].Field0 = colontmp_; heapSizes[(smallest)- 0].Field1 = colontmp__2; }
|
|
LA46_: ;
|
|
}
|
|
LA28_: ;
|
|
|
|
#line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc_common.nim"
|
|
it = (*it).nextType; } LA23: ;
|
|
}
|
|
}
|
|
|
|
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)(&T48_), sizeof(tyProc__oeKKLB9aT2GBgHxIzVFZJKw)); T48_.ClP_0 = ((TM__TzgtsIsJxZkxBRfOAyNbPA_67) (colonanonymous___hGeHeKnt1teQPepcw0zjZA)); T48_.ClE_0 = NIM_NIL;
|
|
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
sort__JiulWtSEje0u1tYdIVp9bPg(heapSizes, 100, T48_, ((tyEnum_SortOrder__8iBc6wlNqBa9cju9cUAhUAxA) 1));
|
|
{ NI i_3; NI i_4; i_3 = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_4 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NCSTRING typeName_1; NI size; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T52_; tySequence__VodmML9btsOO3nz0d6nbJsA** T53_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T54_; NimStringDesc* T55_; NI T56_; NI TM__TzgtsIsJxZkxBRfOAyNbPA_72;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_4 < ((NI) 10))) goto LA51;
|
|
|
|
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
i_3 = i_4;
|
|
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i_3) > (NU)(99)){ raiseIndexError2(i_3, 99); } typeName_1 = heapSizes[(i_3)- 0].Field0; size = heapSizes[(i_3)- 0].Field1;
|
|
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T52_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T52_ = NIM_NIL;
|
|
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T53_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T53_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw(Result, T52_); T54_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T54_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T54_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T55_ = (NimStringDesc*)0; T55_ = (*T54_).name; (*T54_).name = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_68)); if (T55_) nimGCunrefNoCycle(T55_); (*T54_).value = ((NF) (size)); (*T54_).timestamp = timestamp; genericSeqAssign((&(*T54_).labels), TM__TzgtsIsJxZkxBRfOAyNbPA_69, (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
|
|
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((*T54_).labelValues) { nimGCunrefNoCycle((*T54_).labelValues); (*T54_).labelValues = NIM_NIL; } (*T54_).labelValues = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) newSeqRC1((&NTI__sM4lkSb7zS6F7OVMvW9cffQ_), 1);
|
|
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T54_).labelValues->data[0]), cstrToNimstr(typeName_1)); unsureAsgnRef((void**) (&(*T53_)), (tySequence__VodmML9btsOO3nz0d6nbJsA*) incrSeqV3((TGenericSeq*)((*T53_)), (&NTI__VodmML9btsOO3nz0d6nbJsA_))); T56_ = (*T53_)->Sup.len++; asgnRef((void**) (&(*T53_)->data[T56_]), T54_);
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_4, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_72)) { raiseOverflow(); }; i_4 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_72); } LA51: ;
|
|
}
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__qrLSDoe2oBoAqNtJ9badtnA_))) { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* e; Exception* T59_; TM__TzgtsIsJxZkxBRfOAyNbPA_59.status = 0;
|
|
#line 973 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
T59_ = (Exception*)0; T59_ = getCurrentException(); e = ((tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) (T59_));
|
|
#line 974 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 974 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e).Sup.message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_59.status != 0) reraiseException();}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_74)(void) {
|
|
nimGCvisit((void*)httpServerThread__vLh1tKGgIw5xK3YKTGr2xg.data.Field0, 0);}
|
|
static N_NIMCALL(void, Marker_tySequence__1Ld21YGXyvbVguAJHWo4Xw)(void* p, NI op) {
|
|
tySequence__1Ld21YGXyvbVguAJHWo4Xw* a;
|
|
NI T1_; a = (tySequence__1Ld21YGXyvbVguAJHWo4Xw*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_].address, op); }
|
|
}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_82)(void) {
|
|
nimGCvisit((void*)exportBackends__w09cbyPDOIRHq39bzNEgEnLA, 0);}
|
|
static N_NIMCALL(void, Marker_tySequence__tjoHijsTQMeE3IzlIv39cNg)(void* p, NI op) {
|
|
tySequence__tjoHijsTQMeE3IzlIv39cNg* a;
|
|
NI T1_; a = (tySequence__tjoHijsTQMeE3IzlIv39cNg*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_], op); }
|
|
}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_83)(void) {
|
|
nimGCvisit((void*)sockets__BAoJYsOAbSs9bhU3dAMgcOw, 0);}
|
|
static N_NIMCALL(void, Marker_tySequence__t319a7QdvsfiaeHv2eY3PfA)(void* p, NI op) {
|
|
tySequence__t319a7QdvsfiaeHv2eY3PfA* a;
|
|
NI T1_; a = (tySequence__t319a7QdvsfiaeHv2eY3PfA*)p;
|
|
T1_ = (NI)0;}
|
|
static N_NIMCALL(void, TM__TzgtsIsJxZkxBRfOAyNbPA_84)(void) {
|
|
nimGCvisit((void*)lastConnectionTime__kWuM74v4v9blsc6h56CQP3w, 0);}
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, ignoreSignalsInThread__QERFozcUs9cJJl0oYkCJnRw_2)(void) { sigset_t signalMask; sigset_t oldSignalMask; nimZeroMem((void*)(&signalMask), sizeof(sigset_t)); nimZeroMem((void*)(&oldSignalMask), sizeof(sigset_t));
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ int T3_; tyArray__nHXaesL0DJZHyVS07ARPRA T6_; NI32 T7_;
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (int)0; T3_ = sigfillset((&signalMask)); if (!!((T3_ == ((NI32) 0)))) goto LA4_;
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T6_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = (NI32)0; T7_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_[0] = osErrorMsg__33xViSVWAmDrexoKkLfMhg(T7_); echoBinSafe(T6_, 1);
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
exit(((NI) 1));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ int T10_; tyArray__nHXaesL0DJZHyVS07ARPRA T13_; NI32 T14_;
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (int)0; T10_ = pthread_sigmask(((int) 0), (&signalMask), (&oldSignalMask)); if (!!((T10_ == ((NI32) 0)))) goto LA11_;
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T13_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T14_ = (NI32)0; T14_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T13_[0] = osErrorMsg__33xViSVWAmDrexoKkLfMhg(T14_); echoBinSafe(T13_, 1);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
exit(((NI) 1));
|
|
}
|
|
LA11_: ;
|
|
}
|
|
|
|
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, reconnectSocket__qqMIS8Hsn0TnxjKYwNHAwQ)(NI i, tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg backend) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_95;{
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T3_; tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw T4_; NIM_BOOL T5_;
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = getTime__h20mpqrwsumk6J9bRdCm6IQ(); if ((NU)(i) >= (NU)(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w ? lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->Sup.len : 0)){ raiseIndexError2(i,(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w ? lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->Sup.len : 0)-1); }
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = ntDiffTime(T3_, lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->data[i]);
|
|
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = ntLtDuration(T4_, TM__TzgtsIsJxZkxBRfOAyNbPA_93); if (!T5_) goto LA6_;
|
|
|
|
#line 1099 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1099 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nossleep(((NI) 100));
|
|
|
|
#line 1101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_94;
|
|
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); } if (!!((sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i] == NIM_NIL))) goto LA10_;
|
|
|
|
#line 1105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_94); TM__TzgtsIsJxZkxBRfOAyNbPA_94.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_94.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_94.status == 0) {
|
|
#line 1106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
close__UCnvqeCP6HY9ax9cmybKvMtw(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); { TM__TzgtsIsJxZkxBRfOAyNbPA_94.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_94.status != 0) reraiseException(); if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]), NIM_NIL); }
|
|
LA10_: ;
|
|
|
|
#line 1112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
switch (backend.netProtocol) {
|
|
case ((tyEnum_NetProtocol__r49avWAWSPUakdLF9aNZTcqg) 1):
|
|
{ if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]), newSocket__Jq0qsT9cdAR4d7YGWWa2QIA(((tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg) 2), ((tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw) 2), ((tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg) 17), NIM_TRUE)); }
|
|
break;
|
|
case ((tyEnum_NetProtocol__r49avWAWSPUakdLF9aNZTcqg) 0):
|
|
{ if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]), newSocket__Jq0qsT9cdAR4d7YGWWa2QIA(((tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg) 2), ((tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw) 1), ((tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg) 6), NIM_TRUE)); }
|
|
break;
|
|
}
|
|
if ((NU)(i) >= (NU)(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w ? lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->Sup.len : 0)){ raiseIndexError2(i,(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w ? lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->Sup.len : 0)-1); }
|
|
#line 1119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->data[i] = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 1120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_95); TM__TzgtsIsJxZkxBRfOAyNbPA_95.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_95.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_95.status == 0) {
|
|
#line 1121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
connect__WjBu4RATciIBuPu7JT65Mg(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i], backend.address, backend.port, ((NI) 100));
|
|
popSafePoint(); }
|
|
else { popSafePoint(); { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_96; TM__TzgtsIsJxZkxBRfOAyNbPA_95.status = 0;
|
|
#line 1123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_96); TM__TzgtsIsJxZkxBRfOAyNbPA_96.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_96.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_96.status == 0) {
|
|
#line 1124 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1124 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
close__UCnvqeCP6HY9ax9cmybKvMtw(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); { TM__TzgtsIsJxZkxBRfOAyNbPA_96.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_96.status != 0) reraiseException(); if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i]), NIM_NIL); popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_95.status != 0) reraiseException(); }BeforeRet_: ;
|
|
}
|
|
|
|
#line 1129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, pushMetricsWorker__QERFozcUs9cJJl0oYkCJnRw)(void) { tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA volatile data; NimStringDesc* volatile payload; NF volatile finalValue; NimStringDesc* volatile sampleString; TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_85;
|
|
#line 1130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
ignoreSignalsInThread__QERFozcUs9cJJl0oYkCJnRw_2();
|
|
nimZeroMem((void*)(&data), sizeof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA)); payload = (NimStringDesc*)0; finalValue = (NF)0; sampleString = (NimStringDesc*)0;
|
|
#line 1139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1139 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
randomize__JYHVSm4CtuuZW3MM2Ut4bQ();
|
|
|
|
#line 1143 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_85); TM__TzgtsIsJxZkxBRfOAyNbPA_85.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_85.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_85.status == 0) { {
|
|
#line 1144 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
while (1) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_87;
|
|
#line 1145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1145 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
recv__1w5IawKMLquzM26QAGEYMA((&exportChan__Y9bSsqXOvK4gavMDqtF9beUQ), (&data));
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
acquire__9bDG9bIkA6DtNcXVdL7bnLvg((&exportBackendsLock__4QL1ImXA1842w9aAj5qG2rg));
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_87); TM__TzgtsIsJxZkxBRfOAyNbPA_87.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_87.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_87.status == 0) {
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NI T7_; NI T8_; NI T11_;
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = (sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0);
|
|
#line 1150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T8_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if (!(T7_ < T8_)) goto LA9_;
|
|
|
|
#line 1151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if ((T11_) < ((NI) 0) || (T11_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T11_, ((NI) 0), ((NI) IL64(9223372036854775807))); } asgnRef((void**) (&sockets__BAoJYsOAbSs9bhU3dAMgcOw), (tySequence__tjoHijsTQMeE3IzlIv39cNg*) setLengthSeqV2(&(sockets__BAoJYsOAbSs9bhU3dAMgcOw)->Sup, (&NTI__tjoHijsTQMeE3IzlIv39cNg_), ((NI) (T11_)))); }
|
|
LA9_: ;
|
|
|
|
#line 1152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NI T14_; NI T15_; NI T18_;
|
|
#line 1152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T14_ = (lastConnectionTime__kWuM74v4v9blsc6h56CQP3w ? lastConnectionTime__kWuM74v4v9blsc6h56CQP3w->Sup.len : 0);
|
|
#line 1152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T15_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if (!(T14_ < T15_)) goto LA16_;
|
|
|
|
#line 1153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T18_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if ((T18_) < ((NI) 0) || (T18_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T18_, ((NI) 0), ((NI) IL64(9223372036854775807))); } asgnRef((void**) (&lastConnectionTime__kWuM74v4v9blsc6h56CQP3w), (tySequence__t319a7QdvsfiaeHv2eY3PfA*) setLengthSeqV2(&(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w)->Sup, (&NTI__t319a7QdvsfiaeHv2eY3PfA_), ((NI) (T18_)))); }
|
|
LA16_: ;
|
|
{ NI i; tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg backend; NI i_2; NI L; NI T20_; i = (NI)0; nimZeroMem((void*)(&backend), sizeof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg));
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0);
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T20_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); L = T20_; {
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__TzgtsIsJxZkxBRfOAyNbPA_98;
|
|
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < L)) goto LA22;
|
|
|
|
#line 1156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
i = i_2;
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if ((NU)(i_2) >= (NU)(exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0)){ raiseIndexError2(i_2,(exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0)-1); } backend.metricProtocol = exportBackends__w09cbyPDOIRHq39bzNEgEnLA->data[i_2].metricProtocol; backend.netProtocol = exportBackends__w09cbyPDOIRHq39bzNEgEnLA->data[i_2].netProtocol; backend.address = exportBackends__w09cbyPDOIRHq39bzNEgEnLA->data[i_2].address; backend.port = exportBackends__w09cbyPDOIRHq39bzNEgEnLA->data[i_2].port; { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_97;
|
|
#line 1157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
switch (backend.metricProtocol) {
|
|
case ((tyEnum_MetricProtocol__WKrmHyQpOVDY6vJXDZrAAA) 0):
|
|
{ tyArray__sMpvt1sOxOJ3LFGulnbeMQ T42_;
|
|
#line 1159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
finalValue = data.value;
|
|
#line 1160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
sampleString = ((NimStringDesc*) NIM_NIL);
|
|
#line 1162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{
|
|
#line 1162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!eqStrings(data.metricType, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_88))) goto LA27_;
|
|
|
|
#line 1164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
finalValue = data.increment;
|
|
#line 1167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T31_; NimStringDesc* T40_; NimStringDesc* T41_;
|
|
#line 1167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T31_ = (NIM_BOOL)0;
|
|
#line 1167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T31_ = (0.0 < data.sampleRate); if (!(T31_)) goto LA32_;
|
|
|
|
#line 1167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T31_ = (data.sampleRate < 1.0000000000000000e+00); LA32_: ;
|
|
if (!T31_) goto LA33_;
|
|
|
|
#line 1168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NF T37_;
|
|
#line 1168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T37_ = (NF)0; T37_ = rand__dkCsfTGOZrza5peBrYOGxQ(1.0000000000000000e+00); if (!(data.sampleRate < T37_)) goto LA38_;
|
|
|
|
#line 1170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto LA23;
|
|
}
|
|
LA38_: ;
|
|
|
|
#line 1171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T40_ = (NimStringDesc*)0;
|
|
#line 1171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T41_ = (NimStringDesc*)0; T41_ = nimFloatToStr(data.sampleRate); T40_ = rawNewString((T41_ ? T41_->Sup.len : 0) + 2);appendString(T40_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_89));appendString(T40_, T41_); sampleString = T40_; }
|
|
LA33_: ;
|
|
}
|
|
LA27_: ;
|
|
|
|
#line 1172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T42_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ)); T42_[0] = copyString(data.name);
|
|
#line 1172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T42_[1] = nimFloatToStr(finalValue); T42_[2] = copyString(data.metricType); T42_[3] = copyString(sampleString);
|
|
#line 1172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
payload = nsuFormatOpenArray(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_90), T42_, 4); }
|
|
break;
|
|
case ((tyEnum_MetricProtocol__WKrmHyQpOVDY6vJXDZrAAA) 1):
|
|
{ tyArray__24KAM9afIUgUaqBaEBB6r9bg T44_; NI64 TM__TzgtsIsJxZkxBRfOAyNbPA_92;
|
|
#line 1175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T44_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg)); T44_[0] = copyString(data.name);
|
|
#line 1175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T44_[1] = nimFloatToStr(data.value);
|
|
#line 1175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (IL64(1000) == 0){ raiseDivByZero(); } if (nimDivInt64(data.timestamp, IL64(1000), &TM__TzgtsIsJxZkxBRfOAyNbPA_92)) { raiseOverflow(); }; if (((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_92)) < ((NI32) (-2147483647 -1)) || ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_92)) > ((NI32) 2147483647)){ raiseRangeErrorI((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_92), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)); } T44_[2] = nimIntToStr(((NI) (((NI32) ((NI64)(TM__TzgtsIsJxZkxBRfOAyNbPA_92))))));
|
|
#line 1175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
payload = nsuFormatOpenArray(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_91), T44_, 3); }
|
|
break;
|
|
}
|
|
|
|
#line 1177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{
|
|
#line 1177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); } if (!(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i] == NIM_NIL)) goto LA47_;
|
|
|
|
#line 1178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
reconnectSocket__qqMIS8Hsn0TnxjKYwNHAwQ(i, backend);
|
|
|
|
#line 1179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{
|
|
#line 1179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); } if (!(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i] == NIM_NIL)) goto LA51_;
|
|
|
|
#line 1181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto LA23;
|
|
}
|
|
LA51_: ;
|
|
}
|
|
LA47_: ;
|
|
|
|
#line 1183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_97); TM__TzgtsIsJxZkxBRfOAyNbPA_97.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_97.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_97.status == 0) {
|
|
#line 1184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)){ raiseIndexError2(i,(sockets__BAoJYsOAbSs9bhU3dAMgcOw ? sockets__BAoJYsOAbSs9bhU3dAMgcOw->Sup.len : 0)-1); }
|
|
#line 1184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
send__sP9af4zGpnwmZkRofZDfbQQ(sockets__BAoJYsOAbSs9bhU3dAMgcOw->data[i], payload, 0);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__BeJgrOdDsczOwEWOZbRfKA_))) { TM__TzgtsIsJxZkxBRfOAyNbPA_97.status = 0;
|
|
#line 1186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
reconnectSocket__qqMIS8Hsn0TnxjKYwNHAwQ(i, backend);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_97.status != 0) reraiseException(); } LA23: ;
|
|
|
|
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_98)) { raiseOverflow(); }; i_2 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_98);
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
{ NI T58_;
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
T58_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if (!!((T58_ == L))) goto LA59_;
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_99));
|
|
}
|
|
LA59_: ;
|
|
} LA22: ;
|
|
}
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
release__9bDG9bIkA6DtNcXVdL7bnLvg_2((&exportBackendsLock__4QL1ImXA1842w9aAj5qG2rg));
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_87.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_87.status != 0) reraiseException(); }
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e; TM__TzgtsIsJxZkxBRfOAyNbPA_85.status = 0;
|
|
#line 1187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e = getCurrentException();
|
|
#line 1188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_85.status != 0) reraiseException();}
|
|
static N_NIMCALL(void, Marker_tyRef__AcXA5LTiMbTyem2AVbTT5w)(void* p, NI op) {
|
|
tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* a;
|
|
a = (tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*)p;
|
|
nimGCvisit((void*)(*a).Sup.name, op); nimGCvisit((void*)(*a).Sup.help, op); nimGCvisit((void*)(*a).Sup.typ, op); nimGCvisit((void*)(*a).Sup.labels, op); nimGCvisit((void*)(*a).Sup.metrics.data, op);}
|
|
|
|
#line 1748 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NI, find__CWgb1wQSxTCKtdHVU5pCYQsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) { NI result;{ result = (NI)0; { NimStringDesc* i; NI i_2; i = (NimStringDesc*)0;
|
|
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__TzgtsIsJxZkxBRfOAyNbPA_104; NI TM__TzgtsIsJxZkxBRfOAyNbPA_105;
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i_2 < aLen_0)) goto LA3;
|
|
|
|
#line 1751 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if ((NU)(i_2) >= (NU)(aLen_0)){ raiseIndexError2(i_2,aLen_0-1); } i = a[i_2];
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
{
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (!eqStrings(i, item)) goto LA6_;
|
|
|
|
#line 1752 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA6_: ;
|
|
|
|
#line 1753 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
if (nimAddInt(result, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_104)) { raiseOverflow(); }; result = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_104);
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_105)) { raiseOverflow(); }; i_2 = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_105); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 1754 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
result = ((NI) -1); }BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 1756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(NIM_BOOL, contains__MghwuKjQqmVLYE8A59cNGHgsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) { NIM_BOOL result; NI T1_;{ result = (NIM_BOOL)0;
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 1768 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (NI)0; T1_ = find__CWgb1wQSxTCKtdHVU5pCYQsystem(a, aLen_0, item); result = (((NI) 0) <= T1_); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, validateLabels__29cwd9cI9beYlJmsEoJ6DBV2w)(NimStringDesc** labels, NI labelsLen_0, NimStringDesc** invalidLabelNames, NI invalidLabelNamesLen_0) { { NimStringDesc* label; NI i; label = (NimStringDesc*)0;
|
|
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
i = ((NI) 0); {
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
while (1) { NI TM__TzgtsIsJxZkxBRfOAyNbPA_107;
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
|
|
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (!(i < labelsLen_0)) goto LA3;
|
|
|
|
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if ((NU)(i) >= (NU)(labelsLen_0)){ raiseIndexError2(i,labelsLen_0-1); } label = labels[i];
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T6_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T9_; NimStringDesc* T10_;
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_ = (NIM_BOOL)0; T6_ = contains__ATpcLUBGRWa2duwyoHgYLAre(label, labelRegex__EDG72OgAP1oseabZVjPXtw, ((NI) 0)); if (!!(T6_)) goto LA7_;
|
|
T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T9_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T9_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T9_).Sup.Sup.name = "ValueError";
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (NimStringDesc*)0; T10_ = rawNewString((label ? label->Sup.len : 0) + 73);appendString(T10_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_100));appendString(T10_, label);appendString(T10_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_101)); asgnRef((void**) (&(*T9_).Sup.Sup.message), T10_); asgnRef((void**) (&(*T9_).Sup.Sup.parent), NIM_NIL);
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T9_, "ValueError", "validateLabels", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 158); }
|
|
LA7_: ;
|
|
|
|
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T13_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T16_; NimStringDesc* T17_;
|
|
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T13_ = (NIM_BOOL)0; T13_ = nsuStartsWith(label, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_102)); if (!T13_) goto LA14_;
|
|
T16_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T16_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T16_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T16_).Sup.Sup.name = "ValueError";
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T17_ = (NimStringDesc*)0; T17_ = rawNewString((label ? label->Sup.len : 0) + 49);appendString(T17_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_100));appendString(T17_, label);appendString(T17_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_103)); asgnRef((void**) (&(*T16_).Sup.Sup.message), T17_); asgnRef((void**) (&(*T16_).Sup.Sup.parent), NIM_NIL);
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T16_, "ValueError", "validateLabels", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 160); }
|
|
LA14_: ;
|
|
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T20_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T23_; NimStringDesc* T24_; NimStringDesc* T25_;
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T20_ = (NIM_BOOL)0; T20_ = contains__MghwuKjQqmVLYE8A59cNGHgsystem(invalidLabelNames, invalidLabelNamesLen_0, label); if (!T20_) goto LA21_;
|
|
T23_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T23_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T23_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T23_).Sup.Sup.name = "ValueError";
|
|
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T24_ = (NimStringDesc*)0;
|
|
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T25_ = (NimStringDesc*)0; T25_ = dollar___KSooXBZnYft5L9cGgXYN9bxA(invalidLabelNames, invalidLabelNamesLen_0); T24_ = rawNewString((label ? label->Sup.len : 0) + (T25_ ? T25_->Sup.len : 0) + 45);appendString(T24_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_100));appendString(T24_, label);appendString(T24_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_106));appendString(T24_, T25_);appendString(T24_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_49)); asgnRef((void**) (&(*T23_).Sup.Sup.message), T24_); asgnRef((void**) (&(*T23_).Sup.Sup.parent), NIM_NIL);
|
|
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T23_, "ValueError", "validateLabels", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 162); }
|
|
LA21_: ;
|
|
|
|
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__TzgtsIsJxZkxBRfOAyNbPA_107)) { raiseOverflow(); }; i = (NI)(TM__TzgtsIsJxZkxBRfOAyNbPA_107); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 450 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__VodmML9btsOO3nz0d6nbJsA*, newGaugeMetrics__dRtKx2no8Mau6XULdw3IZA)(NimStringDesc* name_0, NimStringDesc** labels, NI labelsLen_0, NimStringDesc** labelValues, NI labelValuesLen_0) { tySequence__VodmML9btsOO3nz0d6nbJsA* result; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T1_; NimStringDesc* T2_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T3_; NimStringDesc* T4_; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T5_; NI64 T6_; result = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0;
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = (tySequence__VodmML9btsOO3nz0d6nbJsA*) newSeq((&NTI__VodmML9btsOO3nz0d6nbJsA_), 2); T1_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T1_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T1_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_); T2_ = (NimStringDesc*)0; T2_ = (*T1_).name; (*T1_).name = copyStringRC1(name_0); if (T2_) nimGCunrefNoCycle(T2_);
|
|
#line 453 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 453 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T1_).labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T1_).labelValues), at___9au1Hh5AAg9cMC8zv7hfdWBg(labelValues, labelValuesLen_0)); asgnRef((void**) (&result->data[0]), T1_); T3_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T3_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T3_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_);
|
|
#line 455 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (NimStringDesc*)0; T4_ = rawNewString((name_0 ? name_0->Sup.len : 0) + 8);appendString(T4_, name_0);appendString(T4_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_108)); asgnRef((void**) (&(*T3_).name), T4_);
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T3_).labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T3_).labelValues), at___9au1Hh5AAg9cMC8zv7hfdWBg(labelValues, labelValuesLen_0));
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_ = (NI64)0; T6_ = toUnix__mXmxlr1pBpariZiJTjytHg(T5_); (*T3_).value = ((NF) (T6_)); asgnRef((void**) (&result->data[1]), T3_); return result;}
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__O9bSd9bhC9aowo1QmApQXVXUg)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_109;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
acquire__9bDG9bIkA6DtNcXVdL7bnLvg((&(*registry).lock));
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_109); TM__TzgtsIsJxZkxBRfOAyNbPA_109.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_109.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_109.status == 0) { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T10_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T4_; NIM_BOOL T5_; tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A* T8_; NimStringDesc* T9_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T4_ = &collector->Sup;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = contains__9aTCSQ11tSJ9cydlWIG9aPteg((&(*registry).collectors), T4_); if (!T5_) goto LA6_;
|
|
T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*)0; T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*) newObj((&NTI__DBrhwKUQMba9aRc9c9boA9a3qA_), sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A)); (*T8_).Sup.Sup.Sup.m_type = (&NTI__NJW9b5IX4yrI8PD8jlFGU4A_); (*T8_).Sup.Sup.name = "RegistrationError"; T9_ = (NimStringDesc*)0; T9_ = (*T8_).Sup.Sup.message; (*T8_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_17)); if (T9_) nimGCunrefNoCycle(T9_); asgnRef((void**) (&(*T8_).Sup.Sup.parent), NIM_NIL);
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T8_, "RegistrationError", "register", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 281); }
|
|
LA6_: ;
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T10_ = &collector->Sup;
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
incl__9b49bS7GqvqpN0Q3MGneD7ZA((&(*registry).collectors), T10_);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
release__9bDG9bIkA6DtNcXVdL7bnLvg_2((&(*registry).lock));
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_109.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_109.status != 0) reraiseException();}
|
|
|
|
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*, newGauge__M34nJZSsewdGDh09anvsrVA)(NimStringDesc* name_0, NimStringDesc* help, NimStringDesc** labels, NI labelsLen_0, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* result; tyArray__8ZvwQIddfpj2THRVPsFzIQ T1_; tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* T2_; NimStringDesc* T3_; NimStringDesc* T4_; NimStringDesc* T5_; result = (tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*)0;
|
|
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateName__tMzz1A6SblAbPUBgpjhjDA(name_0);
|
|
|
|
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T1_, sizeof(tyArray__8ZvwQIddfpj2THRVPsFzIQ));
|
|
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateLabels__29cwd9cI9beYlJmsEoJ6DBV2w(labels, labelsLen_0, T1_, 0);
|
|
|
|
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = (tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*)0; T2_ = (tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*) newObj((&NTI__AcXA5LTiMbTyem2AVbTT5w_), sizeof(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA)); (*T2_).Sup.Sup.m_type = (&NTI__x2IwWHBQ2DnAlsdOBt0v9bA_); T3_ = (NimStringDesc*)0; T3_ = (*T2_).Sup.name; (*T2_).Sup.name = copyStringRC1(name_0); if (T3_) nimGCunrefNoCycle(T3_); T4_ = (NimStringDesc*)0; T4_ = (*T2_).Sup.help; (*T2_).Sup.help = copyStringRC1(help); if (T4_) nimGCunrefNoCycle(T4_); T5_ = (NimStringDesc*)0; T5_ = (*T2_).Sup.typ; (*T2_).Sup.typ = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_15)); if (T5_) nimGCunrefNoCycle(T5_);
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T2_).Sup.labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initOrderedTable__rxOm0EdktnR146KLsyIElg(((NI) 64), (&(*T2_).Sup.metrics));
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T2_).Sup.creationThreadId = getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2(); result = T2_;
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T10_; tySequence__VodmML9btsOO3nz0d6nbJsA* T11_;
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(labelsLen_0 == ((NI) 0))) goto LA8_;
|
|
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T10_ = at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0);
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T11_ = newGaugeMetrics__dRtKx2no8Mau6XULdw3IZA(name_0, labels, labelsLen_0, labels, labelsLen_0);
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg((&(*result).Sup.metrics), T10_, T11_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
register__O9bSd9bhC9aowo1QmApQXVXUg(result, registry);
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__1zvu7qZyvvdj9bFNfopFZvQ)(void* p, NI op) {
|
|
tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* a;
|
|
a = (tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*)p;
|
|
nimGCvisit((void*)(*a).Sup.name, op); nimGCvisit((void*)(*a).Sup.help, op); nimGCvisit((void*)(*a).Sup.typ, op); nimGCvisit((void*)(*a).Sup.labels, op); nimGCvisit((void*)(*a).Sup.metrics.data, op);}
|
|
|
|
#line 320 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__VodmML9btsOO3nz0d6nbJsA*, newCounterMetrics__dRtKx2no8Mau6XULdw3IZA_2)(NimStringDesc* name_0, NimStringDesc** labels, NI labelsLen_0, NimStringDesc** labelValues, NI labelValuesLen_0) { tySequence__VodmML9btsOO3nz0d6nbJsA* result; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T1_; NimStringDesc* T2_; tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg* T3_; NimStringDesc* T4_; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T5_; NI64 T6_; result = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = (tySequence__VodmML9btsOO3nz0d6nbJsA*) newSeq((&NTI__VodmML9btsOO3nz0d6nbJsA_), 2); T1_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T1_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T1_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_);
|
|
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = (NimStringDesc*)0; T2_ = rawNewString((name_0 ? name_0->Sup.len : 0) + 6);appendString(T2_, name_0);appendString(T2_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_111)); asgnRef((void**) (&(*T1_).name), T2_);
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 323 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T1_).labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 324 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T1_).labelValues), at___9au1Hh5AAg9cMC8zv7hfdWBg(labelValues, labelValuesLen_0)); asgnRef((void**) (&result->data[0]), T1_); T3_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*)0; T3_ = (tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*) newObj((&NTI__TBCqhdRln3R9c9aowGiwnZow_), sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg)); (*T3_).Sup.m_type = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_);
|
|
#line 325 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (NimStringDesc*)0; T4_ = rawNewString((name_0 ? name_0->Sup.len : 0) + 8);appendString(T4_, name_0);appendString(T4_, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_108)); asgnRef((void**) (&(*T3_).name), T4_);
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 326 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T3_).labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 327 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 327 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T3_).labelValues), at___9au1Hh5AAg9cMC8zv7hfdWBg(labelValues, labelValuesLen_0));
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T6_ = (NI64)0; T6_ = toUnix__mXmxlr1pBpariZiJTjytHg(T5_); (*T3_).value = ((NF) (T6_)); asgnRef((void**) (&result->data[1]), T3_); return result;}
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, register__mUvLYcTKCVUFc9bfQ8WRH7A)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* collector, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_112;
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
acquire__9bDG9bIkA6DtNcXVdL7bnLvg((&(*registry).lock));
|
|
|
|
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_112); TM__TzgtsIsJxZkxBRfOAyNbPA_112.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_112.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_112.status == 0) { tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T10_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T4_; NIM_BOOL T5_; tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A* T8_; NimStringDesc* T9_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T4_ = &collector->Sup;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = contains__9aTCSQ11tSJ9cydlWIG9aPteg((&(*registry).collectors), T4_); if (!T5_) goto LA6_;
|
|
T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*)0; T8_ = (tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*) newObj((&NTI__DBrhwKUQMba9aRc9c9boA9a3qA_), sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A)); (*T8_).Sup.Sup.Sup.m_type = (&NTI__NJW9b5IX4yrI8PD8jlFGU4A_); (*T8_).Sup.Sup.name = "RegistrationError"; T9_ = (NimStringDesc*)0; T9_ = (*T8_).Sup.Sup.message; (*T8_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_17)); if (T9_) nimGCunrefNoCycle(T9_); asgnRef((void**) (&(*T8_).Sup.Sup.parent), NIM_NIL);
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T8_, "RegistrationError", "register", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 281); }
|
|
LA6_: ;
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T10_ = &collector->Sup;
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
incl__9b49bS7GqvqpN0Q3MGneD7ZA((&(*registry).collectors), T10_);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/core/locks.nim"
|
|
release__9bDG9bIkA6DtNcXVdL7bnLvg_2((&(*registry).lock));
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_112.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_112.status != 0) reraiseException();}
|
|
|
|
#line 338 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*, newCounter__aCN0px5Tq3H2b76ZI5TVlg)(NimStringDesc* name_0, NimStringDesc* help, NimStringDesc** labels, NI labelsLen_0, tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q* registry, NF sampleRate) { tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* result; tyArray__8ZvwQIddfpj2THRVPsFzIQ T1_; tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* T2_; NimStringDesc* T3_; NimStringDesc* T4_; NimStringDesc* T5_; result = (tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*)0;
|
|
#line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 339 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateName__tMzz1A6SblAbPUBgpjhjDA(name_0);
|
|
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)T1_, sizeof(tyArray__8ZvwQIddfpj2THRVPsFzIQ));
|
|
#line 340 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
validateLabels__29cwd9cI9beYlJmsEoJ6DBV2w(labels, labelsLen_0, T1_, 0);
|
|
|
|
#line 341 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = (tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*)0; T2_ = (tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*) newObj((&NTI__1zvu7qZyvvdj9bFNfopFZvQ_), sizeof(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw)); (*T2_).Sup.Sup.m_type = (&NTI__cOLAOcl7p0BPhf5kvmQRqw_); T3_ = (NimStringDesc*)0; T3_ = (*T2_).Sup.name; (*T2_).Sup.name = copyStringRC1(name_0); if (T3_) nimGCunrefNoCycle(T3_); T4_ = (NimStringDesc*)0; T4_ = (*T2_).Sup.help; (*T2_).Sup.help = copyStringRC1(help); if (T4_) nimGCunrefNoCycle(T4_); T5_ = (NimStringDesc*)0; T5_ = (*T2_).Sup.typ; (*T2_).Sup.typ = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_110)); if (T5_) nimGCunrefNoCycle(T5_);
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 344 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&(*T2_).Sup.labels), at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0));
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 345 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initOrderedTable__rxOm0EdktnR146KLsyIElg(((NI) 64), (&(*T2_).Sup.metrics));
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 346 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
(*T2_).Sup.creationThreadId = getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2(); (*T2_).Sup.sampleRate = sampleRate; result = T2_;
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T10_; tySequence__VodmML9btsOO3nz0d6nbJsA* T11_;
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 348 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(labelsLen_0 == ((NI) 0))) goto LA8_;
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T10_ = at___9au1Hh5AAg9cMC8zv7hfdWBg(labels, labelsLen_0);
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T11_ = newCounterMetrics__dRtKx2no8Mau6XULdw3IZA_2(name_0, labels, labelsLen_0, labels, labelsLen_0);
|
|
#line 349 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg((&(*result).Sup.metrics), T10_, T11_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 350 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
register__mUvLYcTKCVUFc9bfQ8WRH7A(result, registry);
|
|
return result;}
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateLabelValues__WmzU5NlcThuOQdaURocHhw)(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* collector, NimStringDesc** labelValues, NI labelValuesLen_0) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
|
|
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NI T5_;
|
|
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(labelValuesLen_0 == ((NI) 0))) goto LA3_;
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = ((*collector).labels ? (*collector).labels->Sup.len : 0); if ((T5_) < ((NI) 0) || (T5_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T5_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = repeat__9cuTwshdYVG5RkixruJSdFg(((NimStringDesc*) NIM_NIL), ((NI) (T5_))); }
|
|
goto LA1_;
|
|
LA3_: ;
|
|
{ NI T7_; tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T10_; NimStringDesc* T11_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = ((*collector).labels ? (*collector).labels->Sup.len : 0); if (!!((labelValuesLen_0 == T7_))) goto LA8_;
|
|
T10_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T10_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T10_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T10_).Sup.Sup.name = "ValueError"; T11_ = (NimStringDesc*)0; T11_ = (*T10_).Sup.Sup.message; (*T10_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_115)); if (T11_) nimGCunrefNoCycle(T11_); asgnRef((void**) (&(*T10_).Sup.Sup.parent), NIM_NIL);
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T10_, "ValueError", "validateLabelValues", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 203); }
|
|
goto LA1_;
|
|
LA8_: ;
|
|
{
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = at___9au1Hh5AAg9cMC8zv7hfdWBg(labelValues, labelValuesLen_0); }
|
|
LA1_: ;
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T15_; NIM_BOOL T16_; NI T18_; tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA* T21_; NimStringDesc* T22_;
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T16_ = (NIM_BOOL)0; T16_ = contains__12nY31z78V72F9cIAyo1OIA((&(*collector).metrics), result); T15_ = !(T16_); if (!(T15_)) goto LA17_;
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T18_ = (NI)0; T18_ = getThreadId__hrQB9bN29c1nR1E9cHqYcNcDA_2(); T15_ = !(((*collector).creationThreadId == T18_)); LA17_: ;
|
|
if (!T15_) goto LA19_;
|
|
T21_ = (tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA*)0; T21_ = (tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA*) newObj((&NTI__4X6IHW59aGB3JdQUUnNW6gQ_), sizeof(tyObject_AccessViolationError__bKJmUghOMpekROxo4PqWpA)); (*T21_).Sup.Sup.Sup.m_type = (&NTI__bKJmUghOMpekROxo4PqWpA_); (*T21_).Sup.Sup.name = "AccessViolationError"; T22_ = (NimStringDesc*)0; T22_ = (*T21_).Sup.Sup.message; (*T21_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_116)); if (T22_) nimGCunrefNoCycle(T22_); asgnRef((void**) (&(*T21_).Sup.Sup.parent), NIM_NIL);
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T21_, "AccessViolationError", "validateLabelValues", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 209); }
|
|
LA19_: ;
|
|
return result;}
|
|
|
|
#line 331 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateCounterLabelValues__b9a7bbVVWtI3OefpFLa9cegQ)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* counter, NimStringDesc** labelValues, NI labelValuesLen_0) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T1_; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T1_ = &counter->Sup;
|
|
#line 332 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = validateLabelValues__WmzU5NlcThuOQdaURocHhw(T1_, labelValues, labelValuesLen_0);
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T4_; tySequence__VodmML9btsOO3nz0d6nbJsA* T7_;
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 333 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (NIM_BOOL)0; T4_ = contains__12nY31z78V72F9cIAyo1OIA((&(*counter).Sup.metrics), result); if (!!(T4_)) goto LA5_;
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T7_ = newCounterMetrics__dRtKx2no8Mau6XULdw3IZA_2((*counter).Sup.name, (*counter).Sup.labels->data, ((*counter).Sup.labels ? (*counter).Sup.labels->Sup.len : 0), result->data, (result ? result->Sup.len : 0));
|
|
#line 334 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg((&(*counter).Sup.metrics), result, T7_);
|
|
}
|
|
LA5_: ;
|
|
return result;}
|
|
|
|
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, atomicAdd__TNBcLLyQmCERe1V6hXdj7Q)(NF* dest_0, NF amount) { NF oldVal; NF newVal; oldVal = (NF)0; newVal = (NF)0; {
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
while (1) {
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_load(((NI64*) (dest_0)), ((NI64*) ((&oldVal))), __ATOMIC_SEQ_CST);
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
newVal = ((NF)(oldVal) + (NF)(amount));
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T5_;
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (NIM_BOOL)0; T5_ = __atomic_compare_exchange(((NI64*) (dest_0)), ((NI64*) ((&oldVal))), ((NI64*) ((&newVal))), NIM_TRUE, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); if (!T5_) goto LA6_;
|
|
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto LA1;
|
|
}
|
|
LA6_: ;
|
|
}
|
|
} LA1: ;
|
|
}
|
|
|
|
#line 373 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
|
|
static N_INLINE(NIM_BOOL, trySend__yfjPDK2emQA210M7WOSzagsystem)(tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ* c, tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA* msg) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 380 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
|
|
|
|
#line 380 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
|
|
|
|
#line 380 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/channels.nim"
|
|
result = sendImpl__wSGPBHwFnSdhsolDckAk3Q(((tyObject_Channel__ue40Uq6h8bju5uDpfFIWKQ*) (c)), ((TNimType*) ((&NTI__SxQ4JtBIl1hYp3tJjAPlIA_))), ((void*) (msg)), NIM_TRUE); return result;}
|
|
|
|
#line 1073 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, pushMetrics__8tvcpgj7MPtkpeMNaGRJow)(NimStringDesc* name_0, NF value_0, NF increment, NimStringDesc* metricType, NI64 timestamp, NF sampleRate) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_117;{
|
|
#line 1076 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NI T3_;
|
|
#line 1076 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1076 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (exportBackends__w09cbyPDOIRHq39bzNEgEnLA ? exportBackends__w09cbyPDOIRHq39bzNEgEnLA->Sup.len : 0); if (!(T3_ == ((NI) 0))) goto LA4_;
|
|
|
|
#line 1078 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 1082 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_117); TM__TzgtsIsJxZkxBRfOAyNbPA_117.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_117.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_117.status == 0) { tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA T7_; NIM_BOOL T8_;
|
|
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
nimZeroMem((void*)(&T7_), sizeof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA)); nimZeroMem((void*)(&T7_), sizeof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA)); T7_.name = copyString(name_0); T7_.value = value_0; T7_.increment = increment; T7_.metricType = copyString(metricType); T7_.timestamp = timestamp; T7_.sampleRate = sampleRate;
|
|
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T8_ = (NIM_BOOL)0; T8_ = trySend__yfjPDK2emQA210M7WOSzagsystem((&exportChan__Y9bSsqXOvK4gavMDqtF9beUQ), (&T7_)); (void)(T8_);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_117.status = 0;
|
|
#line 1091 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 1092 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1092 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_117.status != 0) reraiseException(); }BeforeRet_: ;
|
|
}
|
|
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, incCounter__f2vgkX6kvglPffAjFK9bTCA)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* counter, NI amount, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_113;
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_113); TM__TzgtsIsJxZkxBRfOAyNbPA_113.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_113.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_113.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T9_; tySequence__VodmML9btsOO3nz0d6nbJsA** T10_; tySequence__VodmML9btsOO3nz0d6nbJsA** T11_;
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(amount < ((NI) 0))) goto LA5_;
|
|
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError"; T8_ = (NimStringDesc*)0; T8_ = (*T7_).Sup.Sup.message; (*T7_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_114)); if (T8_) nimGCunrefNoCycle(T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T7_, "ValueError", "incCounter", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 396); }
|
|
LA5_: ;
|
|
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateCounterLabelValues__b9a7bbVVWtI3OefpFLa9cegQ(counter, labelValues, labelValuesLen_0);
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T9_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T9_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T9_) ? (*T9_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T9_) ? (*T9_)->Sup.len : 0)-1); }
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
atomicAdd__TNBcLLyQmCERe1V6hXdj7Q((&(*(*T9_)->data[((NI) 0)]).value), ((NF) (amount)));
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T10_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T10_) ? (*T10_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T10_) ? (*T10_)->Sup.len : 0)-1); }
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T10_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T11_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T11_) ? (*T11_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T11_) ? (*T11_)->Sup.len : 0)-1); }
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*counter).Sup.name, (*(*T11_)->data[((NI) 0)]).value, ((NF) (amount)), ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_88), timestamp, (*counter).Sup.sampleRate);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_113.status = 0;
|
|
#line 409 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_113.status != 0) reraiseException();}
|
|
|
|
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NimStringDesc** labelValues, NI labelValuesLen_0) { tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result; tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg* T1_; result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
|
|
#line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T1_ = (tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*)0; T1_ = &gauge->Sup;
|
|
#line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
result = validateLabelValues__WmzU5NlcThuOQdaURocHhw(T1_, labelValues, labelValuesLen_0);
|
|
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T4_; tySequence__VodmML9btsOO3nz0d6nbJsA* T7_;
|
|
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (NIM_BOOL)0; T4_ = contains__12nY31z78V72F9cIAyo1OIA((&(*gauge).Sup.metrics), result); if (!!(T4_)) goto LA5_;
|
|
|
|
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T7_ = (tySequence__VodmML9btsOO3nz0d6nbJsA*)0; T7_ = newGaugeMetrics__dRtKx2no8Mau6XULdw3IZA((*gauge).Sup.name, (*gauge).Sup.labels->data, ((*gauge).Sup.labels ? (*gauge).Sup.labels->Sup.len : 0), result->data, (result ? result->Sup.len : 0));
|
|
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
X5BX5Deq___uohHPU9avINrKcXskGy9ahfg((&(*gauge).Sup.metrics), result, T7_);
|
|
}
|
|
LA5_: ;
|
|
return result;}
|
|
|
|
#line 508 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, incGauge__HwJS9c9bgiy5rwuQi0WzS4qw)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NF amount, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_118;
|
|
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_118); TM__TzgtsIsJxZkxBRfOAyNbPA_118.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_118.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_118.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T3_; tySequence__VodmML9btsOO3nz0d6nbJsA** T4_; tySequence__VodmML9btsOO3nz0d6nbJsA** T5_;
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q(gauge, labelValues, labelValuesLen_0);
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T3_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T3_) ? (*T3_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T3_) ? (*T3_)->Sup.len : 0)-1); }
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
atomicAdd__TNBcLLyQmCERe1V6hXdj7Q((&(*(*T3_)->data[((NI) 0)]).value), amount);
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T4_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T4_) ? (*T4_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T4_) ? (*T4_)->Sup.len : 0)-1); }
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T4_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T5_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T5_) ? (*T5_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T5_) ? (*T5_)->Sup.len : 0)-1); }
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*gauge).Sup.name, (*(*T5_)->data[((NI) 0)]).value, 0.0, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_119), timestamp, 1.0000000000000000e+00);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_118.status = 0;
|
|
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_118.status != 0) reraiseException();}
|
|
|
|
#line 525 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, decGauge__y5UlmHGFYL2FbhQBYdL3Gg)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NI amount, NimStringDesc** labelValues, NI labelValuesLen_0) {
|
|
#line 549 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 527 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (amount == (IL64(-9223372036854775807) - IL64(1))){ raiseOverflow(); }
|
|
#line 549 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
incGauge__HwJS9c9bgiy5rwuQi0WzS4qw(gauge, ((NF) (((NI64)-(amount)))), labelValues, labelValuesLen_0);
|
|
}
|
|
|
|
#line 508 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, incGauge__y5UlmHGFYL2FbhQBYdL3Gg_2)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NI amount, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_120;
|
|
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_120); TM__TzgtsIsJxZkxBRfOAyNbPA_120.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_120.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_120.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T3_; tySequence__VodmML9btsOO3nz0d6nbJsA** T4_; tySequence__VodmML9btsOO3nz0d6nbJsA** T5_;
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q(gauge, labelValues, labelValuesLen_0);
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T3_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T3_) ? (*T3_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T3_) ? (*T3_)->Sup.len : 0)-1); }
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
atomicAdd__TNBcLLyQmCERe1V6hXdj7Q((&(*(*T3_)->data[((NI) 0)]).value), ((NF) (amount)));
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T4_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T4_) ? (*T4_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T4_) ? (*T4_)->Sup.len : 0)-1); }
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T4_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T5_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T5_) ? (*T5_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T5_) ? (*T5_)->Sup.len : 0)-1); }
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*gauge).Sup.name, (*(*T5_)->data[((NI) 0)]).value, 0.0, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_119), timestamp, 1.0000000000000000e+00);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_120.status = 0;
|
|
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_120.status != 0) reraiseException();}
|
|
|
|
#line 529 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, setGauge__BCqfX1hcfEYZ9cpaRVZ53Og)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NI64 value_0, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_121;
|
|
#line 531 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_121); TM__TzgtsIsJxZkxBRfOAyNbPA_121.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_121.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_121.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T3_; union { NF source; NI64 dest; } LOC4; tySequence__VodmML9btsOO3nz0d6nbJsA** T5_;
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 534 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 534 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q(gauge, labelValues, labelValuesLen_0);
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T3_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T3_) ? (*T3_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T3_) ? (*T3_)->Sup.len : 0)-1); } LOC4.source = ((NF) (value_0));
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store_n(((NI64*) ((&(*(*T3_)->data[((NI) 0)]).value))), LOC4.dest, __ATOMIC_SEQ_CST);
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T5_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T5_) ? (*T5_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T5_) ? (*T5_)->Sup.len : 0)-1); }
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T5_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*gauge).Sup.name, ((NF) (value_0)), 0.0, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_119), timestamp, 1.0000000000000000e+00);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_121.status = 0;
|
|
#line 543 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_121.status != 0) reraiseException();}
|
|
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, incCounter__SSmvCDUpWYKgYeMk6h9bX7g)(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw* counter, NI64 amount, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_122;
|
|
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_122); TM__TzgtsIsJxZkxBRfOAyNbPA_122.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_122.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_122.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T9_; tySequence__VodmML9btsOO3nz0d6nbJsA** T10_; tySequence__VodmML9btsOO3nz0d6nbJsA** T11_;
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T7_; NimStringDesc* T8_;
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(amount < IL64(0))) goto LA5_;
|
|
T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T7_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T7_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T7_).Sup.Sup.name = "ValueError"; T8_ = (NimStringDesc*)0; T8_ = (*T7_).Sup.Sup.message; (*T7_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_114)); if (T8_) nimGCunrefNoCycle(T8_); asgnRef((void**) (&(*T7_).Sup.Sup.parent), NIM_NIL);
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
raiseExceptionEx((Exception*)T7_, "ValueError", "incCounter", "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics."
|
|
"nim", 396); }
|
|
LA5_: ;
|
|
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateCounterLabelValues__b9a7bbVVWtI3OefpFLa9cegQ(counter, labelValues, labelValuesLen_0);
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T9_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T9_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T9_) ? (*T9_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T9_) ? (*T9_)->Sup.len : 0)-1); }
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
atomicAdd__TNBcLLyQmCERe1V6hXdj7Q((&(*(*T9_)->data[((NI) 0)]).value), ((NF) (amount)));
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T10_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T10_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T10_) ? (*T10_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T10_) ? (*T10_)->Sup.len : 0)-1); }
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T10_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T11_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*counter).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T11_) ? (*T11_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T11_) ? (*T11_)->Sup.len : 0)-1); }
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*counter).Sup.name, (*(*T11_)->data[((NI) 0)]).value, ((NF) (amount)), ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_88), timestamp, (*counter).Sup.sampleRate);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_122.status = 0;
|
|
#line 409 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_122.status != 0) reraiseException();}
|
|
|
|
#line 529 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, setGauge__zqKhHFiP6UCG1pxThM5UDw)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NI value_0, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_123;
|
|
#line 531 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_123); TM__TzgtsIsJxZkxBRfOAyNbPA_123.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_123.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_123.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T3_; union { NF source; NI64 dest; } LOC4; tySequence__VodmML9btsOO3nz0d6nbJsA** T5_;
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 534 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 534 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q(gauge, labelValues, labelValuesLen_0);
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T3_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T3_) ? (*T3_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T3_) ? (*T3_)->Sup.len : 0)-1); } LOC4.source = ((NF) (value_0));
|
|
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store_n(((NI64*) ((&(*(*T3_)->data[((NI) 0)]).value))), LOC4.dest, __ATOMIC_SEQ_CST);
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T5_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T5_) ? (*T5_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T5_) ? (*T5_)->Sup.len : 0)-1); }
|
|
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T5_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*gauge).Sup.name, ((NF) (value_0)), 0.0, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_119), timestamp, 1.0000000000000000e+00);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_123.status = 0;
|
|
#line 543 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_123.status != 0) reraiseException();}
|
|
|
|
#line 508 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, incGauge__SbNsWi9besJxy9cT9c9b318Wyg)(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA* gauge, NI64 amount, NimStringDesc** labelValues, NI labelValuesLen_0) { TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_124;
|
|
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_124); TM__TzgtsIsJxZkxBRfOAyNbPA_124.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_124.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_124.status == 0) { NI64 timestamp; tyObject_Time__3y2ZpqsTJLqdZvpC9a0rU2Q T2_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* labelValuesCopy; tySequence__VodmML9btsOO3nz0d6nbJsA** T3_; tySequence__VodmML9btsOO3nz0d6nbJsA** T4_; tySequence__VodmML9btsOO3nz0d6nbJsA** T5_;
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T2_ = getTime__h20mpqrwsumk6J9bRdCm6IQ();
|
|
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
timestamp = toMilliseconds__v9ckJ0ejUC4lpCzmw9bVsLmA(T2_);
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
labelValuesCopy = validateGaugeLabelValues__wYA8l4Ykvec09cNIXIS8M2Q(gauge, labelValues, labelValuesLen_0);
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T3_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T3_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T3_) ? (*T3_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T3_) ? (*T3_)->Sup.len : 0)-1); }
|
|
#line 515 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
atomicAdd__TNBcLLyQmCERe1V6hXdj7Q((&(*(*T3_)->data[((NI) 0)]).value), ((NF) (amount)));
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T4_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T4_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T4_) ? (*T4_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T4_) ? (*T4_)->Sup.len : 0)-1); }
|
|
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
__atomic_store(((NI64*) ((&(*(*T4_)->data[((NI) 0)]).timestamp))), (×tamp), __ATOMIC_SEQ_CST);
|
|
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T5_ = (tySequence__VodmML9btsOO3nz0d6nbJsA**)0; T5_ = X5BX5D___56YoT2jVNRbehtHNzP9bAVw((&(*gauge).Sup.metrics), labelValuesCopy); if ((NU)(((NI) 0)) >= (NU)((*T5_) ? (*T5_)->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*T5_) ? (*T5_)->Sup.len : 0)-1); }
|
|
#line 518 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushMetrics__8tvcpgj7MPtkpeMNaGRJow((*gauge).Sup.name, (*(*T5_)->data[((NI) 0)]).value, 0.0, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_119), timestamp, 1.0000000000000000e+00);
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__XEycrCsme5C8CVWAYEcdBQ_))) { Exception* e_1; TM__TzgtsIsJxZkxBRfOAyNbPA_124.status = 0;
|
|
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 0 "\?\?\?"
|
|
|
|
#line 0 "\?\?\?"
|
|
e_1 = getCurrentException();
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
printError__Ocg9bqNMxyiGBDEaGvXNN1Q((*e_1).message);
|
|
popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_124.status != 0) reraiseException();}
|
|
N_LIB_PRIVATE N_NIMCALL(void, metrics_metricsInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
{
|
|
TFrame FR_; FR_.len = 0;
|
|
|
|
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&nameRegex__VdGTa5sOLr4NEknWrrMsWw), re__BHdoI8AriYxT9bGXrX9c7EhQ(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_3), 16));
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&labelRegex__EDG72OgAP1oseabZVjPXtw), re__BHdoI8AriYxT9bGXrX9c7EhQ(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_5), 16));
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&defaultRegistry__io1tPp0SUJ9acKTx5nDy47A), newRegistry__9aGaV6ZlOG1kf02BLhoxenA());
|
|
#line 824 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 824 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&processInfo__9ae9coqs2Om6SLyjZKc7B4eg), newProcessInfo__qma07NyTGNiidpA2dIReew(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_18), ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_19), defaultRegistry__io1tPp0SUJ9acKTx5nDy47A));
|
|
#line 915 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 915 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
asgnRef((void**) (&runtimeInfo__CLx3H4r1QCm6vab9b01sZSg), newRuntimeInfo__n8Vk39b23tItjO19a29cKN7kQ(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_57), ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_58), defaultRegistry__io1tPp0SUJ9acKTx5nDy47A));}
|
|
{
|
|
nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_2); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_4); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_11); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_12); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_21); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_55); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_74); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_82); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_83); nimRegisterGlobalMarker(TM__TzgtsIsJxZkxBRfOAyNbPA_84);
|
|
#line 829 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_20; NI T22_; NI T23_;
|
|
#line 829 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (!(btime__hsWDV65avSzVars7W1fDjw == 0.0)) goto LA3_;
|
|
|
|
#line 830 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_20); TM__TzgtsIsJxZkxBRfOAyNbPA_20.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_20.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_20.status == 0) { { FILE* f; TSafePoint TM__TzgtsIsJxZkxBRfOAyNbPA_23;
|
|
#line 755 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 755 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
f = open__cb1k9citqyT9a9brBSJAz8pkg(((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_22), ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) 8000));
|
|
#line 756 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
pushSafePoint(&TM__TzgtsIsJxZkxBRfOAyNbPA_23); TM__TzgtsIsJxZkxBRfOAyNbPA_23.status = setjmp(TM__TzgtsIsJxZkxBRfOAyNbPA_23.context); if (TM__TzgtsIsJxZkxBRfOAyNbPA_23.status == 0) { NimStringDesc* res;
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 757 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
res = rawNewString(((NI) 80)); {
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
while (1) { NIM_BOOL T10_; NimStringDesc* T11_;
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 758 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
T10_ = (NIM_BOOL)0; T10_ = readLine__FbqDHP9bu7nqCh9c04dnSOxw(f, (&res)); if (!T10_) goto LA9;
|
|
|
|
#line 831 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T11_ = (NimStringDesc*)0; T11_ = line__1HmhgWX8r5Uka69c1tEb7Dg; line__1HmhgWX8r5Uka69c1tEb7Dg = copyStringRC1(res); if (T11_) nimGCunrefNoCycle(T11_);
|
|
#line 832 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
{ NIM_BOOL T14_; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T17_;
|
|
#line 832 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 832 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T14_ = (NIM_BOOL)0; T14_ = nsuStartsWith(line__1HmhgWX8r5Uka69c1tEb7Dg, ((NimStringDesc*) &TM__TzgtsIsJxZkxBRfOAyNbPA_24)); if (!T14_) goto LA15_;
|
|
|
|
#line 833 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 833 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 833 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T17_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; T17_ = nsuSplitChar(line__1HmhgWX8r5Uka69c1tEb7Dg, 32, ((NI) -1)); if ((NU)(((NI) 1)) >= (NU)(T17_ ? T17_->Sup.len : 0)){ raiseIndexError2(((NI) 1),(T17_ ? T17_->Sup.len : 0)-1); }
|
|
#line 833 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
btime__hsWDV65avSzVars7W1fDjw = nsuParseFloat(T17_->data[((NI) 1)]); }
|
|
LA15_: ;
|
|
} LA9: ;
|
|
}
|
|
popSafePoint(); }
|
|
else { popSafePoint(); }
|
|
{
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
|
|
#line 760 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/io.nim"
|
|
close__fU6ZlJAtQ9bre04EDZLdGsA_3(f);
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_23.status != 0) nimLeaveFinally(); }
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_23.status != 0) reraiseException(); }
|
|
popSafePoint(); }
|
|
else { popSafePoint(); if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) { TM__TzgtsIsJxZkxBRfOAyNbPA_20.status = 0; popCurrentException(); }
|
|
}
|
|
if (TM__TzgtsIsJxZkxBRfOAyNbPA_20.status != 0) reraiseException();
|
|
#line 837 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 837 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 837 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T22_ = (NI)0; T22_ = sysconf(((int) 2)); ticks__9cgUEWIhOljaWkbRwQ4f3yg = ((NF) (T22_));
|
|
#line 838 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 838 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 838 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
T23_ = (NI)0; T23_ = sysconf(((int) 30)); pagesize__1p7VzA3d29bbd29aps9b7nu0w = ((NF) (T23_)); }
|
|
LA3_: ;
|
|
|
|
#line 1054 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (exportBackends__w09cbyPDOIRHq39bzNEgEnLA) { nimGCunrefNoCycle(exportBackends__w09cbyPDOIRHq39bzNEgEnLA); exportBackends__w09cbyPDOIRHq39bzNEgEnLA = NIM_NIL; }
|
|
#line 1058 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (sockets__BAoJYsOAbSs9bhU3dAMgcOw) { nimGCunrefNoCycle(sockets__BAoJYsOAbSs9bhU3dAMgcOw); sockets__BAoJYsOAbSs9bhU3dAMgcOw = NIM_NIL; }
|
|
#line 1059 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
if (lastConnectionTime__kWuM74v4v9blsc6h56CQP3w) { nimGCunrefNoCycle(lastConnectionTime__kWuM74v4v9blsc6h56CQP3w); lastConnectionTime__kWuM74v4v9blsc6h56CQP3w = NIM_NIL; }
|
|
#line 1061 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1061 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
initLock__Mz9ax9a7rBFxTQq0g0dLnxAwlocks((&exportBackendsLock__4QL1ImXA1842w9aAj5qG2rg));
|
|
|
|
#line 1062 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1062 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
open__dsR75sy8cZ4BrmTxSxy3WA((&exportChan__Y9bSsqXOvK4gavMDqtF9beUQ), ((NI) 1024));
|
|
|
|
#line 1190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
|
|
#line 1190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-metrics/metrics.nim"
|
|
createThread__um5slEgmxl6nQ1entEtXNw((&exportThread__M6XK22VHPiZ0uUpbG6qkSQ), pushMetricsWorker__QERFozcUs9cJJl0oYkCJnRw);
|
|
}
|
|
}
|
|
|
|
N_LIB_PRIVATE N_NIMCALL(void, metrics_metricsDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[5];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_9_2[2];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[7];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_65_2[2];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_73_2[2];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[4];
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_76_2[2];
|
|
NI TM__TzgtsIsJxZkxBRfOAyNbPA_78;
|
|
static char* NIM_CONST TM__TzgtsIsJxZkxBRfOAyNbPA_77[2] = {
|
|
"STATSD",
|
|
"CARBON"};
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_79_2[2];
|
|
NI TM__TzgtsIsJxZkxBRfOAyNbPA_81;
|
|
static char* NIM_CONST TM__TzgtsIsJxZkxBRfOAyNbPA_80[2] = {
|
|
"TCP",
|
|
"UDP"};
|
|
static TNimNode* TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[6];
|
|
static TNimNode TM__TzgtsIsJxZkxBRfOAyNbPA_0[46];NTI__recdHZbXZv9bB8u9aRHCM5Kg_.size = sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg);
|
|
NTI__recdHZbXZv9bB8u9aRHCM5Kg_.kind = 17;
|
|
NTI__recdHZbXZv9bB8u9aRHCM5Kg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__recdHZbXZv9bB8u9aRHCM5Kg_.name = "Metric:ObjectType";
|
|
NTI__recdHZbXZv9bB8u9aRHCM5Kg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__recdHZbXZv9bB8u9aRHCM5Kg_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[1];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[1].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[1].offset = offsetof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg, name);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[1].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[1].name = "name";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[2];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[2].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[2].offset = offsetof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg, value);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[2].typ = (&NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[2].name = "value";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[2] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[3];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[3].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[3].offset = offsetof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg, timestamp);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[3].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[3].name = "timestamp";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[3] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[4];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[4].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[4].offset = offsetof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg, labels);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[4].typ = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[4].name = "labels";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[4] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[5];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[5].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[5].offset = offsetof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg, labelValues);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[5].typ = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[5].name = "labelValues";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[0].len = 5; TM__TzgtsIsJxZkxBRfOAyNbPA_0[0].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[0].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_8_5[0];
|
|
NTI__recdHZbXZv9bB8u9aRHCM5Kg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[0];
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.size = sizeof(tyObject_MetriccolonObjectType___recdHZbXZv9bB8u9aRHCM5Kg*);
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.kind = 22;
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.base = (&NTI__recdHZbXZv9bB8u9aRHCM5Kg_);
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.name = "Metric";
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.nextType = nimTypeRoot; nimTypeRoot=&NTI__TBCqhdRln3R9c9aowGiwnZow_;
|
|
NTI__TBCqhdRln3R9c9aowGiwnZow_.marker = Marker_tyRef__TBCqhdRln3R9c9aowGiwnZow;
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.size = sizeof(tySequence__VodmML9btsOO3nz0d6nbJsA*);
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.kind = 24;
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.base = (&NTI__TBCqhdRln3R9c9aowGiwnZow_);
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.name = "seq[Metric]";
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__VodmML9btsOO3nz0d6nbJsA_;
|
|
NTI__VodmML9btsOO3nz0d6nbJsA_.marker = Marker_tySequence__VodmML9btsOO3nz0d6nbJsA;
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.size = sizeof(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q);
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.kind = 17;
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.name = "Registry:ObjectType";
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__BYp09bQgV1UDe8gKDGtyK7Q_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_9_2[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[7];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[7].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[7].offset = offsetof(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q, lock);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[7].typ = (&NTI__9bxnxao7MiiLOwO9aLAh9a3og_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[7].name = "lock";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_9_2[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[8];
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.size = sizeof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg);
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.kind = 17;
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.name = "Collector:ObjectType";
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__fxDVjFD559aINhArr9a0DVSg_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[10];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[10].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[10].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, name);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[10].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[10].name = "name";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[11];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[11].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[11].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, help);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[11].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[11].name = "help";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[2] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[12];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[12].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[12].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, typ);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[12].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[12].name = "typ";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[3] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[13];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[13].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[13].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, labels);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[13].typ = (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[13].name = "labels";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[4] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[14];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[14].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[14].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, metrics);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[14].typ = (&NTI__AG5w5XCJjF9b05sfGM0qgkw_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[14].name = "metrics";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[5] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[15];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[15].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[15].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, creationThreadId);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[15].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[15].name = "creationThreadId";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[6] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[16];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[16].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[16].offset = offsetof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg, sampleRate);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[16].typ = (&NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[16].name = "sampleRate";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[9].len = 7; TM__TzgtsIsJxZkxBRfOAyNbPA_0[9].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[9].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_10_7[0];
|
|
NTI__fxDVjFD559aINhArr9a0DVSg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[9];
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.size = sizeof(tyObject_CollectorcolonObjectType___fxDVjFD559aINhArr9a0DVSg*);
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.kind = 22;
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.base = (&NTI__fxDVjFD559aINhArr9a0DVSg_);
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.name = "Collector";
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__ecoffcajrsDrsmQ682SYrw_;
|
|
NTI__ecoffcajrsDrsmQ682SYrw_.marker = Marker_tyRef__ecoffcajrsDrsmQ682SYrw;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[8].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[8].offset = offsetof(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q, collectors);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[8].typ = (&NTI__KmhVjTVGTaJmtA3BpwKNsw_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[8].name = "collectors";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[6].len = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[6].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[6].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_9_2[0];
|
|
NTI__BYp09bQgV1UDe8gKDGtyK7Q_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[6];
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.size = sizeof(tyObject_RegistrycolonObjectType___BYp09bQgV1UDe8gKDGtyK7Q*);
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.kind = 22;
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.base = (&NTI__BYp09bQgV1UDe8gKDGtyK7Q_);
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.name = "Registry";
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__S6edH5xvccB7X8MNpU6vZw_;
|
|
NTI__S6edH5xvccB7X8MNpU6vZw_.marker = Marker_tyRef__S6edH5xvccB7X8MNpU6vZw;
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.size = sizeof(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA);
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.kind = 17;
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.base = (&NTI__fxDVjFD559aINhArr9a0DVSg_);
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.name = "Gauge:ObjectType";
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__x2IwWHBQ2DnAlsdOBt0v9bA_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[17].len = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_0[17].kind = 2;
|
|
NTI__x2IwWHBQ2DnAlsdOBt0v9bA_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[17];
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.size = sizeof(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw);
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.kind = 17;
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.base = (&NTI__x2IwWHBQ2DnAlsdOBt0v9bA_);
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.name = "ProcessInfo:ObjectType";
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__lk9a1N5rz7U7kStl78tROfw_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[18].len = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_0[18].kind = 2;
|
|
NTI__lk9a1N5rz7U7kStl78tROfw_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[18];
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.size = sizeof(tyObject_ProcessInfocolonObjectType___lk9a1N5rz7U7kStl78tROfw*);
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.kind = 22;
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.base = (&NTI__lk9a1N5rz7U7kStl78tROfw_);
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.name = "ProcessInfo";
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__OXXy9av46ePON7Ddtio6XWQ_;
|
|
NTI__OXXy9av46ePON7Ddtio6XWQ_.marker = Marker_tyRef__OXXy9av46ePON7Ddtio6XWQ;
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.size = sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A);
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.kind = 17;
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.name = "RegistrationError";
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__NJW9b5IX4yrI8PD8jlFGU4A_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[19].len = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_0[19].kind = 2;
|
|
NTI__NJW9b5IX4yrI8PD8jlFGU4A_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[19];
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.size = sizeof(tyObject_RegistrationError__NJW9b5IX4yrI8PD8jlFGU4A*);
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.kind = 22;
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.base = (&NTI__NJW9b5IX4yrI8PD8jlFGU4A_);
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.name = "ref RegistrationError";
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__DBrhwKUQMba9aRc9c9boA9a3qA_;
|
|
NTI__DBrhwKUQMba9aRc9c9boA9a3qA_.marker = Marker_tyRef__DBrhwKUQMba9aRc9c9boA9a3qA;
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.size = sizeof(tySequence__HhwRVSXQRFCCEUo2zMKJVg*);
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.kind = 24;
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.base = (&NTI__LCURwohbLBusrL8hdCnvng_);
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.flags = 2;
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.name = "seq[tuple[kind: PathComponent, path: string]]";
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__HhwRVSXQRFCCEUo2zMKJVg_;
|
|
NTI__HhwRVSXQRFCCEUo2zMKJVg_.marker = Marker_tySequence__HhwRVSXQRFCCEUo2zMKJVg;
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.size = sizeof(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg);
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.kind = 17;
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.base = (&NTI__x2IwWHBQ2DnAlsdOBt0v9bA_);
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.name = "RuntimeInfo:ObjectType";
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__ye1TmHw4DBmcStXbxVQlCg_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[20].len = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_0[20].kind = 2;
|
|
NTI__ye1TmHw4DBmcStXbxVQlCg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[20];
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.size = sizeof(tyObject_RuntimeInfocolonObjectType___ye1TmHw4DBmcStXbxVQlCg*);
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.kind = 22;
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.base = (&NTI__ye1TmHw4DBmcStXbxVQlCg_);
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.name = "RuntimeInfo";
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Lyd39biUPMY5BcuojDhRizA_;
|
|
NTI__Lyd39biUPMY5BcuojDhRizA_.marker = Marker_tyRef__Lyd39biUPMY5BcuojDhRizA;
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.size = sizeof(tyTuple__0hEbbYmlam6yzyW5MFo9cjg);
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.kind = 18;
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.base = 0;
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.flags = 3;
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.name = "tuple of (cstring, int)";
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__0hEbbYmlam6yzyW5MFo9cjg_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_65_2[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[22];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[22].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[22].offset = offsetof(tyTuple__0hEbbYmlam6yzyW5MFo9cjg, Field0);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[22].typ = (&NTI__S9agCYBinaYZnGWcjTdxclg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[22].name = "Field0";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_65_2[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[23];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[23].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[23].offset = offsetof(tyTuple__0hEbbYmlam6yzyW5MFo9cjg, Field1);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[23].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[23].name = "Field1";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[21].len = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[21].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[21].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_65_2[0];
|
|
NTI__0hEbbYmlam6yzyW5MFo9cjg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[21];
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.size = sizeof(tyTuple__J0FzjuY02DFObU1sQZLwJA);
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.kind = 18;
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.base = 0;
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.flags = 2;
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.name = "HttpServerArgs";
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__J0FzjuY02DFObU1sQZLwJA_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_73_2[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[25];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[25].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[25].offset = offsetof(tyTuple__J0FzjuY02DFObU1sQZLwJA, Field0);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[25].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[25].name = "Field0";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_73_2[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[26];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[26].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[26].offset = offsetof(tyTuple__J0FzjuY02DFObU1sQZLwJA, Field1);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[26].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[26].name = "Field1";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[24].len = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[24].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[24].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_73_2[0];
|
|
NTI__J0FzjuY02DFObU1sQZLwJA_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[24];
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.size = sizeof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg);
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.kind = 18;
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.base = 0;
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.flags = 2;
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.name = "ExportBackend";
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__32NQFWYE4pXjMbCMA6kwZg_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[28];
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.size = sizeof(tyEnum_MetricProtocol__WKrmHyQpOVDY6vJXDZrAAA);
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.kind = 14;
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.base = 0;
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.flags = 3;
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.name = "MetricProtocol";
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__WKrmHyQpOVDY6vJXDZrAAA_;
|
|
for (TM__TzgtsIsJxZkxBRfOAyNbPA_78 = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_78 < 2; TM__TzgtsIsJxZkxBRfOAyNbPA_78++) {
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_78+29].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_78+29].offset = TM__TzgtsIsJxZkxBRfOAyNbPA_78;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_78+29].name = TM__TzgtsIsJxZkxBRfOAyNbPA_77[TM__TzgtsIsJxZkxBRfOAyNbPA_78];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_76_2[TM__TzgtsIsJxZkxBRfOAyNbPA_78] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_78+29];
|
|
}
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[31].len = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[31].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[31].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_76_2[0];
|
|
NTI__WKrmHyQpOVDY6vJXDZrAAA_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[31];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[28].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[28].offset = offsetof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg, metricProtocol);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[28].typ = (&NTI__WKrmHyQpOVDY6vJXDZrAAA_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[28].name = "metricProtocol";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[32];
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.size = sizeof(tyEnum_NetProtocol__r49avWAWSPUakdLF9aNZTcqg);
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.kind = 14;
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.base = 0;
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.flags = 3;
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.name = "NetProtocol";
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__r49avWAWSPUakdLF9aNZTcqg_;
|
|
for (TM__TzgtsIsJxZkxBRfOAyNbPA_81 = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_81 < 2; TM__TzgtsIsJxZkxBRfOAyNbPA_81++) {
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_81+33].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_81+33].offset = TM__TzgtsIsJxZkxBRfOAyNbPA_81;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_81+33].name = TM__TzgtsIsJxZkxBRfOAyNbPA_80[TM__TzgtsIsJxZkxBRfOAyNbPA_81];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_79_2[TM__TzgtsIsJxZkxBRfOAyNbPA_81] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[TM__TzgtsIsJxZkxBRfOAyNbPA_81+33];
|
|
}
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[35].len = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[35].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[35].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_79_2[0];
|
|
NTI__r49avWAWSPUakdLF9aNZTcqg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[35];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[32].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[32].offset = offsetof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg, netProtocol);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[32].typ = (&NTI__r49avWAWSPUakdLF9aNZTcqg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[32].name = "netProtocol";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[2] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[36];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[36].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[36].offset = offsetof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg, address);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[36].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[36].name = "address";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[3] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[37];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[37].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[37].offset = offsetof(tyObject_ExportBackend__32NQFWYE4pXjMbCMA6kwZg, port);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[37].typ = (&NTI__M4na42GvebBMnI5wV9cYMxg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[37].name = "port";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[27].len = 4; TM__TzgtsIsJxZkxBRfOAyNbPA_0[27].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[27].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_75_4[0];
|
|
NTI__32NQFWYE4pXjMbCMA6kwZg_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[27];
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.size = sizeof(tySequence__1Ld21YGXyvbVguAJHWo4Xw*);
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.kind = 24;
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.base = (&NTI__32NQFWYE4pXjMbCMA6kwZg_);
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.flags = 2;
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.name = "seq[ExportBackend]";
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__1Ld21YGXyvbVguAJHWo4Xw_;
|
|
NTI__1Ld21YGXyvbVguAJHWo4Xw_.marker = Marker_tySequence__1Ld21YGXyvbVguAJHWo4Xw;
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.size = sizeof(tySequence__tjoHijsTQMeE3IzlIv39cNg*);
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.kind = 24;
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.base = (&NTI__MkGXUPMSENeRDS7EppfLgA_);
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.flags = 2;
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.name = "seq[Socket]";
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__tjoHijsTQMeE3IzlIv39cNg_;
|
|
NTI__tjoHijsTQMeE3IzlIv39cNg_.marker = Marker_tySequence__tjoHijsTQMeE3IzlIv39cNg;
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.size = sizeof(tySequence__t319a7QdvsfiaeHv2eY3PfA*);
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.kind = 24;
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.base = (&NTI__3y2ZpqsTJLqdZvpC9a0rU2Q_);
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.flags = 2;
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.name = "seq[Time]";
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__t319a7QdvsfiaeHv2eY3PfA_;
|
|
NTI__t319a7QdvsfiaeHv2eY3PfA_.marker = Marker_tySequence__t319a7QdvsfiaeHv2eY3PfA;
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.size = sizeof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA);
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.kind = 18;
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.base = 0;
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.flags = 2;
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.name = "ExportedMetric";
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__SxQ4JtBIl1hYp3tJjAPlIA_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[0] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[39];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[39].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[39].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, name);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[39].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[39].name = "name";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[1] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[40];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[40].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[40].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, value);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[40].typ = (&NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[40].name = "value";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[2] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[41];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[41].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[41].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, increment);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[41].typ = (&NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[41].name = "increment";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[3] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[42];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[42].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[42].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, metricType);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[42].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[42].name = "metricType";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[4] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[43];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[43].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[43].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, timestamp);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[43].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[43].name = "timestamp";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[5] = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[44];
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[44].kind = 1;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[44].offset = offsetof(tyObject_ExportedMetric__SxQ4JtBIl1hYp3tJjAPlIA, sampleRate);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[44].typ = (&NTI__w9bl9a1ul9ctRJWiMl9cNnIMvg_);
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[44].name = "sampleRate";
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[38].len = 6; TM__TzgtsIsJxZkxBRfOAyNbPA_0[38].kind = 2; TM__TzgtsIsJxZkxBRfOAyNbPA_0[38].sons = &TM__TzgtsIsJxZkxBRfOAyNbPA_86_6[0];
|
|
NTI__SxQ4JtBIl1hYp3tJjAPlIA_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[38];
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.size = sizeof(tyObject_GaugecolonObjectType___x2IwWHBQ2DnAlsdOBt0v9bA*);
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.kind = 22;
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.base = (&NTI__x2IwWHBQ2DnAlsdOBt0v9bA_);
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.name = "Gauge";
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__AcXA5LTiMbTyem2AVbTT5w_;
|
|
NTI__AcXA5LTiMbTyem2AVbTT5w_.marker = Marker_tyRef__AcXA5LTiMbTyem2AVbTT5w;
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.size = sizeof(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw);
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.kind = 17;
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.base = (&NTI__fxDVjFD559aINhArr9a0DVSg_);
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.name = "Counter:ObjectType";
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__cOLAOcl7p0BPhf5kvmQRqw_;
|
|
TM__TzgtsIsJxZkxBRfOAyNbPA_0[45].len = 0; TM__TzgtsIsJxZkxBRfOAyNbPA_0[45].kind = 2;
|
|
NTI__cOLAOcl7p0BPhf5kvmQRqw_.node = &TM__TzgtsIsJxZkxBRfOAyNbPA_0[45];
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.size = sizeof(tyObject_CountercolonObjectType___cOLAOcl7p0BPhf5kvmQRqw*);
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.kind = 22;
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.base = (&NTI__cOLAOcl7p0BPhf5kvmQRqw_);
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.name = "Counter";
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__1zvu7qZyvvdj9bFNfopFZvQ_;
|
|
NTI__1zvu7qZyvvdj9bFNfopFZvQ_.marker = Marker_tyRef__1zvu7qZyvvdj9bFNfopFZvQ;
|
|
}
|
|
|