Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
talla
enacl
Commits
f05ba6e2
Commit
f05ba6e2
authored
Aug 29, 2015
by
Jesper Louis Andersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce the DTrace scripts used to measure the performance in
the project.
parent
8c31db79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
.gitignore
.gitignore
+0
-1
bench/enacl_nif.d
bench/enacl_nif.d
+37
-0
bench/funcall_enacl.d
bench/funcall_enacl.d
+9
-0
No files found.
.gitignore
View file @
f05ba6e2
...
...
@@ -3,7 +3,6 @@
ebin
*.beam
*.o
*.d
*.eqc
*.so
eqc_test/.eqc-info
...
...
bench/enacl_nif.d
0 → 100644
View file @
f05ba6e2
/* Dirty NIF schedule overhead */
pid
$
target
:
beam
.
smp
:
schedule_dirty_cpu_nif
:
return
{
s
=
timestamp
;
}
pid
$
target
:
libsodium
.
so
.*:
randombytes
:
entry
{
e
=
timestamp
;
}
pid
$
target
:
beam
.
smp
:
execute_dirty_nif
:
entry
/
s
!=
0
/
{
@SchedTime
=
lquantize
(
timestamp
-
s
,
0
,
10000
,
250
);
s
=
0
;
}
pid
$
target
:
beam
.
smp
:
execute_dirty_nif
:
return
{
@ExecTime
=
lquantize
(
timestamp
-
e
,
0
,
10000
,
250
);
e
=
0
;
r
=
timestamp
;
}
pid
$
target
:
beam
.
smp
:
dirty_nif_finalizer
:
entry
/
r
!=
0
/
{
@ReturnTime
=
lquantize
(
timestamp
-
r
,
0
,
10000
,
250
);
r
=
0
;
}
END
{
printa
(
"Scheduling overhead (nanos):%@d\n"
,
@SchedTime
);
printa
(
"Return overhead (nanos):%@d\n"
,
@ReturnTime
);
printa
(
"Exec time (nanos):%@d\n"
,
@ExecTime
);
}
bench/funcall_enacl.d
0 → 100644
View file @
f05ba6e2
erlang
*:::
nif
-
entry
{
funcall_entry_ts
[
cpu
,
copyinstr
(
arg1
)]
=
vtimestamp
;
}
erlang
*:::
nif
-
return
{
@time
[
cpu
,
copyinstr
(
arg1
)]
=
lquantize
((
vtimestamp
-
funcall_entry_ts
[
cpu
,
copyinstr
(
arg1
)]
),
0
,
60000
,
1000
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment