UNPKG

@warp-drive/build-config

Version:

Provides Build Configuration for projects using WarpDrive or EmberData

135 lines (133 loc) 3.71 kB
declare module '@warp-drive/build-config/debugging' { /** * ## Debugging * * Many portions of the internals are helpfully instrumented with logging that can be activated * at build time. This instrumentation is always removed from production builds or any builds * that has not explicitly activated it. To activate it set the appropriate flag to `true`. * @module @warp-drive/build-config/debugging @main @warp-drive/build-config/debugging */ /** * * Many portions of the internals are helpfully instrumented with logging that can be activated at build time. This instrumentation is always removed from production builds or any builds that has not explicitly activated it. To activate it set the appropriate flag to `true`. ```ts let app = new EmberApp(defaults, { emberData: { debug: { LOG_PAYLOADS: false, // data store received to update cache with LOG_OPERATIONS: false, // updates to cache remote state LOG_MUTATIONS: false, // updates to cache local state LOG_NOTIFICATIONS: false, LOG_REQUESTS: false, LOG_REQUEST_STATUS: false, LOG_IDENTIFIERS: false, LOG_GRAPH: false, LOG_INSTANCE_CACHE: false, } } }); ``` @class DebugLogging @public */ /** * log payloads received by the store * via `push` or returned from a delete/update/create * operation. * * @property {boolean} LOG_PAYLOADS * @public */ export const LOG_PAYLOADS: boolean; /** * log remote-state updates to the cache * * @property {boolean} LOG_OPERATIONS * @public */ export const LOG_OPERATIONS: boolean; /** * log local-state updates to the cache * * @property {boolean} LOG_MUTATIONS * @public */ export const LOG_MUTATIONS: boolean; /** * log notifications received by the NotificationManager * * @property {boolean} LOG_NOTIFICATIONS * @public */ export const LOG_NOTIFICATIONS: boolean; /** * log requests issued by the RequestManager * * @property {boolean} LOG_REQUESTS * @public */ export const LOG_REQUESTS: boolean; /** * log updates to requests the store has issued to * the network (adapter) to fulfill. * * @property {boolean} LOG_REQUEST_STATUS * @public */ export const LOG_REQUEST_STATUS: boolean; /** * log peek, generation and updates to * Record Identifiers. * * @property {boolean} LOG_IDENTIFIERS * @public */ export const LOG_IDENTIFIERS: boolean; /** * log updates received by the graph (relationship pointer storage) * * @property {boolean} LOG_GRAPH * @public */ export const LOG_GRAPH: boolean; /** * log creation/removal of RecordData and Record * instances. * * @property {boolean} LOG_INSTANCE_CACHE * @public */ export const LOG_INSTANCE_CACHE: boolean; /** * Log key count metrics, useful for performance * debugging. * * @property {boolean} LOG_METRIC_COUNTS * @public */ export const LOG_METRIC_COUNTS: boolean; /** * Helps when debugging causes of a change notification * when processing an update to a hasMany relationship. * * @property {boolean} DEBUG_RELATIONSHIP_NOTIFICATIONS * @public */ export const DEBUG_RELATIONSHIP_NOTIFICATIONS: boolean; /** * A private flag to enable logging of the native Map/Set * constructor and method calls. * * EXTREMELY MALPERFORMANT * * LOG_METRIC_COUNTS must also be enabled. * * @typedoc */ export const __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS: boolean; } //# sourceMappingURL=debugging.d.ts.map