Performance metrics (#619)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2021-12-22 10:02:51 +01:00
committed by GitHub
parent 11ddaad88d
commit 806400f5f2
32 changed files with 1372 additions and 257 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
// limitations under the License.
//
import { DOMAIN_TX } from '@anticrm/core'
import { DOMAIN_TX, MeasureMetricsContext } from '@anticrm/core'
import type { Ref, Doc, TxResult } from '@anticrm/core'
import { start as startJsonRpc } from '@anticrm/server-ws'
import { createInMemoryAdapter, createInMemoryTxAdapter } from '@anticrm/dev-storage'
@@ -48,7 +48,7 @@ async function createNullFullTextAdapter (): Promise<FullTextAdapter> {
export async function start (port: number, host?: string): Promise<void> {
addLocation(serverChunterId, () => import('@anticrm/server-chunter-resources'))
startJsonRpc(() => {
startJsonRpc(new MeasureMetricsContext('server', {}), () => {
const conf: DbConfiguration = {
domains: {
[DOMAIN_TX]: 'InMemoryTx'