TGStat
TGStat
Type to search
Advanced channel search
  • flag English
    Site language
    flag Russian flag English flag Uzbek
  • Sign In
  • Catalog
    Channels and groups catalog Regional compilations Thematic compilations Платные каналы Search for channels
    Add a channel/group
  • Ratings
    Rating of channels Rating of groups Posts rating
    Ratings of brands and people
  • Analytics
  • Search by posts
  • Telegram monitoring
  • Promotion
    Advertising through Yandex Business Advertising in channels through TGStat Agency Advertising on TGStat.ru website
Python Community | Chat

4 Oct, 14:51

Open in Telegram Share Report

Forward from: Python Community
🐍 Python тормозит? В 3.15 добавили инструмент, который покажет где

Tachyon (`profiling.sampling`) периодически снимает стек вызовов и определяет, где программа тратит время.

Работает отдельным процессом, с минимальным влиянием на приложение. Можно подключиться к запущенному сервису без перезапуска и изменения кода.

Что умеет:

• Строить flame graphs и тепловые карты строк.
• Показывать нагрузку в реальном времени.
• Анализировать asyncio, ожидание I/O и удержание GIL.

Подключение к процессу по PID:


python3.15 -m profiling.sampling attach 12345


🎙 В Talk Python разработчики рассказывают, как устроен профилировщик и как применять его на практике:

https://talkpython.fm/episodes/show/565/tachyon-python-3.15s-built-in-sampling-profiler

@Python_Community_ru
Catalog
Channels and groups catalog Channels compilations Search for channels Add a channel/group
Ratings
Rating of Telegram channels Rating of Telegram groups Posts rating Ratings of brands and people
API
API statistics Search API of posts API Callback
Our channels
@TGStat @TGStat_Chat @telepulse @TGStatAPI
Read
Академия TGStat Telegram Research 2019 Telegram Research 2021 Telegram Research 2023
Contacts
Справочный центр Support Email Jobs
Miscellaneous
Terms and conditions Privacy policy Public offer
Our bots
@TGStat_Bot @SearcheeBot @TGAlertsBot @tg_analytics_bot @TGStatChatBot