Consensys / mythx-developer-support

Support resources and bug reporting for Mythril Tool Developers
3 stars 1 forks source link

What units are queueTime and runTIme measured in? #14

Closed rocky closed 6 years ago

rocky commented 6 years ago
$ ./analyses-status.sh a1aaa0c9-6241-4956-aac8-a0acd4617156
Issuing HTTP GET https://api.mythril.ai/v1/analyses/a1aaa0c9-6241-4956-aac8-a0acd4617156
  (with MYTHRIL_API_KEY)
curl completed sucessfully. Output follows...
HTTP/1.1 200 OK
{
  "apiVersion": "v1.0.25",
  "error": "An error occurred when running myth.\nOutput: \nError Output: Traceback (most recent call last):\n  File \"/usr/local/bin/myth\", line 9, in <module>\n    mythril.interfaces.cli.main()\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/interfaces/cli.py\", line 206, in main\n    max_depth=args.max_depth, execution_timeout=args.execution_timeout)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/mythril.py\", line 380, in fire_lasers\n    max_depth=max_depth, execution_timeout=execution_timeout)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/analysis/symbolic.py\", line 30, in __init__\n    self.laser.sym_exec(address)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/svm.py\", line 61, in sym_exec\n    transaction.run(self.open_states, self)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/transaction.py\", line 58, in run\n    evm.exec()\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/svm.py\", line 71, in exec\n    new_states, op_code = self.execute_state(global_state)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/svm.py\", line 97, in execute_state\n    new_global_states = Instruction(op_code, self.dynamic_loader).evaluate(global_state)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/instructions.py\", line 69, in evaluate\n    return instruction_mutator(global_state)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/instructions.py\", line 34, in wrapper\n    new_global_states = func(self, global_state_copy)\n  File \"/usr/local/lib/python3.6/dist-packages/mythril/laser/ethereum/instructions.py\", line 77, in push_\n    value = BitVecVal(int(global_state.get_current_instruction()['argument'][2:], 16), 256)\nValueError: invalid literal for int() with base 16: ''\n",
  "mythrilVersion": "v0.18.11",
  "queueTime": 19,
  "runTime": 729,
  "status": "Error",
  "submittedAt": "2018-09-13T19:04:12.933Z",
  "submittedBy": "85484509-a281-4f4e-9cef-08fdd3c6fae2",
  "uuid": "a1aaa0c9-6241-4956-aac8-a0acd4617156"
}

what usits are queueTime and runTIme measured in? .001 seconds?

birdofpreyru commented 6 years ago

Yes, they are in milliseconds, which is standard for JS. It is mentioned in response descriptions in OpenAPI specs.