@sentry/profiling-node
Advanced tools
Comparing version
@@ -527,10 +527,4 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
var ProfileFormat; (function (ProfileFormat) { | ||
const THREAD = 0; ProfileFormat[ProfileFormat["THREAD"] = THREAD] = "THREAD"; | ||
const CHUNK = 1; ProfileFormat[ProfileFormat["CHUNK"] = CHUNK] = "CHUNK"; | ||
})(ProfileFormat || (ProfileFormat = {})); | ||
/* eslint-disable max-lines */ | ||
const CHUNK_INTERVAL_MS = 1000 * 60; | ||
@@ -756,3 +750,3 @@ const PROFILE_MAP = new core.LRUMap(50); | ||
const profile = nodeCpuProfiler.CpuProfilerBindings.stopProfiling(this._chunkData.id, ProfileFormat.CHUNK); | ||
const profile = nodeCpuProfiler.CpuProfilerBindings.stopProfiling(this._chunkData.id, nodeCpuProfiler.ProfileFormat.CHUNK); | ||
@@ -759,0 +753,0 @@ if (!profile) { |
@@ -1,2 +0,2 @@ | ||
import { CpuProfilerBindings } from '@sentry-internal/node-cpu-profiler'; | ||
import { CpuProfilerBindings, ProfileFormat } from '@sentry-internal/node-cpu-profiler'; | ||
import { parseSemver, logger, forEachEnvelopeItem, createEnvelope, getDebugImagesForResources, uuid4, dsnToString, spanIsSampled, spanToJSON, LRUMap, defineIntegration, consoleSandbox, getRootSpan, getIsolationScope, getCurrentScope, getGlobalScope } from '@sentry/core'; | ||
@@ -525,10 +525,4 @@ import * as os from 'os'; | ||
var ProfileFormat; (function (ProfileFormat) { | ||
const THREAD = 0; ProfileFormat[ProfileFormat["THREAD"] = THREAD] = "THREAD"; | ||
const CHUNK = 1; ProfileFormat[ProfileFormat["CHUNK"] = CHUNK] = "CHUNK"; | ||
})(ProfileFormat || (ProfileFormat = {})); | ||
/* eslint-disable max-lines */ | ||
const CHUNK_INTERVAL_MS = 1000 * 60; | ||
@@ -535,0 +529,0 @@ const PROFILE_MAP = new LRUMap(50); |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.1.1-alpha.0","sideEffects":false} | ||
{"type":"module","version":"9.2.0-beta.0","sideEffects":false} |
@@ -0,4 +1,4 @@ | ||
import { RawThreadCpuProfile } from '@sentry-internal/node-cpu-profiler'; | ||
import { CustomSamplingContext, Span } from '@sentry/core'; | ||
import { NodeClient } from '@sentry/node'; | ||
import { RawThreadCpuProfile } from './types'; | ||
export declare const MAX_PROFILE_DURATION_MS: number; | ||
@@ -5,0 +5,0 @@ /** |
import { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/core'; | ||
import { RawChunkCpuProfile, RawThreadCpuProfile } from './types'; | ||
import { RawChunkCpuProfile, RawThreadCpuProfile } from '@sentry-internal/node-cpu-profiler'; | ||
export declare const PROFILER_THREAD_ID_STRING: string; | ||
@@ -4,0 +4,0 @@ export declare const PROFILER_THREAD_NAME: string; |
@@ -0,4 +1,4 @@ | ||
import { type RawThreadCpuProfile } from '@sentry-internal/node-cpu-profiler'; | ||
import type { CustomSamplingContext, Span } from '@sentry/core'; | ||
import type { NodeClient } from '@sentry/node'; | ||
import type { RawThreadCpuProfile } from './types'; | ||
export declare const MAX_PROFILE_DURATION_MS: number; | ||
@@ -5,0 +5,0 @@ /** |
import type { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/core'; | ||
import type { RawChunkCpuProfile, RawThreadCpuProfile } from './types'; | ||
import type { RawChunkCpuProfile, RawThreadCpuProfile } from '@sentry-internal/node-cpu-profiler'; | ||
export declare const PROFILER_THREAD_ID_STRING: string; | ||
@@ -4,0 +4,0 @@ export declare const PROFILER_THREAD_NAME: string; |
{ | ||
"name": "@sentry/profiling-node", | ||
"version": "9.1.1-alpha.0", | ||
"version": "9.2.0-beta.0", | ||
"description": "Official Sentry SDK for Node.js Profiling", | ||
@@ -66,4 +66,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"@sentry-internal/node-cpu-profiler": "^2.0.0", | ||
"@sentry/core": "9.1.1-alpha.0", | ||
"@sentry/node": "9.1.1-alpha.0" | ||
"@sentry/core": "9.2.0-beta.0", | ||
"@sentry/node": "9.2.0-beta.0" | ||
}, | ||
@@ -70,0 +70,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
207973
-4.76%27
-10%2106
-5.69%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated