Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

IntelPython/Profiling_Guide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Profiling_Guide

Profilers help to identify performance problems. These are tools designed to give the metrics to find the slowest parts of the code so that we can optimize what really matters. Profilers can gather a wide variety of metrics: wall time, CPU time, network or memory consumption, I/O operations, etc.
Profilers can answer questions like,

  • How many times is each method in my code called?
  • How long does each of these methods take?
  • How much memory does the method consume?

There are different types of profilers
  • Deterministic Profiling: Deterministic profilers execute trace functions at various points of interest (function call, function return) and record precise timings of these events. It means the code runs slower under profiling. Its use in production systems is often impractical.

  • Statistical profiling:  Instead of tracking every event (call to every function), statistical profilers interrupt applications periodically and collect samples of the execution state (call stack snapshots). The call stacks are then analyzed to determine the execution time of different parts of the application. This method is less accurate, but it also reduces the overhead.


We will begin profiling with a Starter Kit:

  • Scikit-Learn Intelligent Indexing for Incoming Correspondence – Ref Kit

image

Follow the steps mentioned in the github readme to setup the environment.
The process involves

  • Setting up a virtual environment for stock/Intel®-accelerated ML
  • Preprocessing data using Pandas/Intel® oneAPI Modin and NLTK
  • Training an NLP model for text classification using scikit-learn/Intel® oneAPI scikit-learn extension
  • Predicting from the trained model on new data using scikit-learn/Intel® oneAPI scikit-learn extension.

Here we'll discuss profiling Tools Available for Python

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors