mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-15 17:54:47 +00:00
display gas cost of each test
This commit is contained in:
parent
b491134bb9
commit
0f18c5caf1
@ -26,6 +26,10 @@ class EmbarkSpec extends Base {
|
||||
|
||||
console.log(fmt, receipt.className, receipt.gasUsed);
|
||||
}
|
||||
function onBlockHeader(blockHeader) {
|
||||
self.stats.totalGasCost += blockHeader.gasUsed;
|
||||
self.stats.test.gasUsed += blockHeader.gasUsed;
|
||||
}
|
||||
|
||||
function onBlockHeader(blockHeader) {
|
||||
if(!self.listenForGas) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user