Add tests for importers (#56)

This also fixes deep copy import for Instruments when copying from Instruments 7

Related to #14
This commit is contained in:
Jamie Wong
2018-05-29 23:53:03 -07:00
committed by GitHub
parent 405e751bbb
commit 2207ff54ce
22 changed files with 14015 additions and 19 deletions
+2
View File
@@ -30,3 +30,5 @@ a()
setTimeout(() => {
console.profileEnd('a')
}, 0)
window.addEventListener('click', a)
+35
View File
@@ -0,0 +1,35 @@
require 'json'
require 'stackprof'
def a
for i in 0..100 do
b
c
end
end
def b
for i in 0..10
d
end
end
def c
for i in 0..10
d
end
end
def d
prod = 1
for i in 1..1000
prod *= i
end
prod
end
profile = StackProf.run(mode: :wall, raw: true) do
a
end
puts JSON.generate(profile)