Skip to content

Instantly share code, notes, and snippets.

@Mons
Created July 26, 2022 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mons/1af2b46c0c9b1276b2359a0313a8f7c2 to your computer and use it in GitHub Desktop.
Save Mons/1af2b46c0c9b1276b2359a0313a8f7c2 to your computer and use it in GitHub Desktop.
-- (c) Dmitry Sharonov если что - я вчера на скорую руку добавил в семлпер еще тройку лидеров из топа, вот так:
local top = fun.iter(fiber.top().cpu):map(function(name, f) f.name=name; return f end):totable()
table.sort(top, function(f1, f2) return f1.average > f2.average end)
log.info(require('yaml').encode(fun.iter(top):take(3):totable()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment