Yonatan Goldschmidt

Results 16 issues of Yonatan Goldschmidt

By the way, https://github.com/PyCQA/pylint/issues/2571 was fixed in pylint 2.10, but I see that we're using 2.6 so I don't want to do the upgrade in this small fix PR. ---...

network protocol

## Summary * OS: Linux * Type: new-api ## Description The auxiliary vector exposes useful information about processes, and is available at `/proc/pid/auxv`. Many values are given as addresses in...

enhancement
linux
new-api

## Summary * OS: Linux * Bug fix: yes * Type: core * Fixes: None ## Description `psutil.Process(pid).exe()` returns `""` for zombie processes, incorrectly. It should raise `ZombieProcess`, and return...

## Summary * OS: General * Type: core / performance ## Description Certain per-process getter APIs (such as `Process.cmdline()`, `Process.environ()`) can be used in case the user knows that a...

enhancement
performance
api

Surprisingly, Python allows you to change the `__class__` attribute of an object: ``` In [1]: class A: ...: def __init__(self): ...: self.x = 5 ...: self.y = "hi" ...: ...:...

new snippets

Hi @benfred , we're using py-spy in our [gProfiler](https://github.com/Granulate/gprofiler/) which is a system-wide continuous profiler. gProfiler continuously scans for new processes and invokes py-spy on them. Every set interval ("profiling...

Inspired by [async-profler's](https://github.com/jvm-profiling-tools/async-profiler) `-g` option, which shows method's full signature, so `java/io/File.list` becomes `java/io/File.list()[Ljava/lang/String;` for example. We can add something similar in py-spy: we already have the "read locals" logic...

``` $ cat a.py class A: def f(self): return self $ cat b.py import a a.A().f() $ monkeytype run b.py $ monkeytype apply a class A: def f(self) -> A:...

enhancement

Here's how it looks: ![screenshot_20200720_025136](https://user-images.githubusercontent.com/8831572/87889045-6cc43a00-ca38-11ea-805c-1d45d853b3ab.png) This PR uses metadata included in the output of `perf script --header`. Other `stackcollapse` scripts can be modified to output relevant metadata as comments, and...

`perf script` accepts `--header` which prints a bunch of metadata about the recording as comments (prefixed with `#`) before printing the stacks themselves. `stackcollapse-perf.pl` knows this and skips the comments....