
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
= CodeTimer
A tool for roughly and quickly measuring your slow code. This is not intended to be a sophisticated tool, but rather a quick off the cuff way to measure which part of your code is slow.
It's profiling with print statements.
To use the tool first instantiate it:
ct = CodeTimer.new
Then insert named section markers throughout your code:
ct.start("Part1")
...
ct.start("Part2")
When you're done measuring:
ct.end
Which returns a formmated string containing the results:
Total Time: 17s
Part1: 11% / 2s
Part2: 29% / 5s
Part3: 47% / 8s
Part4: 11% / 2s
As seen above, the slowest portion of the code is between the Part3 and Part4 markers.
== Contributing to tool
== Copyright
Copyright (c) 2012 Eric Himmelreich. See LICENSE.txt for further details.
FAQs
Unknown package
We found that code_timer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.