From 6a393100964d6fbbad2cc8d454b10d099f1a8d30 Mon Sep 17 00:00:00 2001 From: JimZhang Date: Fri, 25 Aug 2023 08:45:15 +0800 Subject: [PATCH] some command --- content/posts/linux-command.md | 11 +++++++++++ sass/no-style-please.scss | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/posts/linux-command.md b/content/posts/linux-command.md index 50f32d5..5c7fb19 100644 --- a/content/posts/linux-command.md +++ b/content/posts/linux-command.md @@ -18,3 +18,14 @@ cat file |awk 'BEGIN {T=0} (T!=systime()) { printf "%s %s\n",NR,$0 ; T=systime() lsof |grep delete | sort -nrk 7| more ``` +### python 内存监测 +```bash +pip install memray +memray run --live -m module.file +``` + +### python cpu监测 +```bash +pip install py-spy +py-spy top --pid ${pid} +``` \ No newline at end of file diff --git a/sass/no-style-please.scss b/sass/no-style-please.scss index 3d8c734..fc7fee7 100644 --- a/sass/no-style-please.scss +++ b/sass/no-style-please.scss @@ -88,7 +88,7 @@ li { margin: 2rem auto; padding: 2rem 2rem 0 2rem; .list { - min-height: 72vh; + min-height: 64vh; } } .discus {