Skip to content

Commit

Permalink
model/profile: add profile data model
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Nov 21, 2019
1 parent 9832e2d commit 29ae16b
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 1 deletion.
176 changes: 176 additions & 0 deletions docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ grouped in the following categories:
* <<exported-fields-apm>>
* <<exported-fields-apm-error>>
* <<exported-fields-apm-profile>>
* <<exported-fields-apm-sourcemap>>
* <<exported-fields-apm-span>>
* <<exported-fields-apm-transaction>>
Expand Down Expand Up @@ -1107,6 +1108,181 @@ type: keyword
--
[[exported-fields-apm-profile]]
== APM Profile fields
Profiling-specific data for APM.
*`profile.id`*::
+
--
The unique ID of the profile.
type: keyword
--
*`profile.cpu.ns`*::
+
--
Amount of CPU time profiled, in nanoseconds.
type: long
--
*`profile.samples.count`*::
+
--
Number of profile samples for the profiling period.
type: long
--
*`profile.alloc_objects.count`*::
+
--
Number of objects allocated since the process started.
type: long
--
*`profile.alloc_space.bytes`*::
+
--
Amount of memory allocated, in bytes, since the process started.
type: long
--
*`profile.inuse_objects.count`*::
+
--
Number of objects allocated and currently in use.
type: long
--
*`profile.inuse_space.bytes`*::
+
--
Amount of memory allocated, in bytes, and currently in use.
type: long
--
*`profile.duration`*::
+
--
Duration of the span, in microseconds.
type: long
--
*`profile.top.id`*::
+
--
Unique ID for the top stack frame in the context of its callers.
type: keyword
--
*`profile.top.function`*::
+
--
Function name for the top stack frame.
type: keyword
--
*`profile.top.filename`*::
+
--
Source code filename for the top stack frame.
type: keyword
--
*`profile.top.line`*::
+
--
Source code line number for the top stack frame.
type: long
--
*`profile.stack.id`*::
+
--
Unique ID for a stack frame in the context of its callers.
type: keyword
--
*`profile.stack.function`*::
+
--
Function name for a stack frame.
type: keyword
--
*`profile.stack.filename`*::
+
--
Source code filename for a stack frame.
type: keyword
--
*`profile.stack.line`*::
+
--
Source code line number for a stack frame.
type: long
--
[[exported-fields-apm-sourcemap]]
== APM Sourcemap fields
Expand Down
2 changes: 1 addition & 1 deletion include/fields.go

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions model/profile/_meta/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
- key: apm-profile
title: APM Profile
description: Profiling-specific data for APM.
fields:
- name: profile
type: group
dynamic: false
fields:

- name: cpu
type: group
fields:
- name: ns
type: long
count: 1
description: >
Amount of CPU time profiled, in nanoseconds.
- name: samples
type: group
fields:
- name: count
type: long
count: 1
description: >
Number of profile samples for the profiling period.
- name: alloc_objects
type: group
fields:
- name: count
type: long
count: 1
description: >
Number of objects allocated since the process started.
- name: alloc_space
type: group
fields:
- name: bytes
type: long
count: 1
description: >
Amount of memory allocated, in bytes, since the process started.
- name: inuse_objects
type: group
fields:
- name: count
type: long
count: 1
description: >
Number of objects allocated and currently in use.
- name: inuse_space
type: group
fields:
- name: bytes
type: long
count: 1
description: >
Amount of memory allocated, in bytes, and currently in use.
- name: duration
type: long
count: 1
description: >
Duration of the span, in microseconds.
- name: top
type: group
dynamic: false
fields:
- name: id
type: keyword
description: >
Unique ID for the top stack frame in the context of its callers.
- name: function
type: keyword
count: 1
description: >
Function name for the top stack frame.
- name: filename
type: keyword
count: 1
description: >
Source code filename for the top stack frame.
- name: line
type: long
count: 1
description: >
Source code line number for the top stack frame.
- name: stack
type: group
dynamic: false
fields:
- name: id
type: keyword
description: >
Unique ID for a stack frame in the context of its callers.
- name: function
type: keyword
description: >
Function name for a stack frame.
- name: filename
type: keyword
description: >
Source code filename for a stack frame.
- name: line
type: long
description: >
Source code line number for a stack frame.
Loading

0 comments on commit 29ae16b

Please sign in to comment.