Re: cProfile, timed call tree

2018-05-28 Thread Nico Schlömer
Thanks, Dieter, for the concise answer.

Cheers,
Nico

On Sat, May 26, 2018 at 7:42 AM dieter  wrote:

> Nico Schlömer  writes:
>
> > From what I understand about the Python profilers, the type of
> information
> > you get from a stats object is
> >
> >   * How much time was spent in function X,
> >   * what the callers and callees of function X are, and
> >   * and bunch of meta info about function X.
> >
> > With the program
> > ```
> > def prime(n):
> > # compute the n-th prime number, takes longer for larger n
> > return 2
> >
> > def a():
> > return prime(1)
> >
> > def b():
> > return prime(4000)
> >
> > a()
> > b()
> > ```
> > I would be able to find that `prime` took a lot of time, but not that it
> > took more time when called from `b()`. In other words: I cannot construct
> > the call tree with times from Stats.
>
> You will see that "prime" was called both from "a" and "b" - and
> *in this particular case*, you will see that the execution times
> of "b" and "prime" are almost identical and derive that the "prime"
> call of b was the expensive one.
>
> But, in general, you are right: you cannot reconstruct complete
> call trees. The reason is quite simple: maintaining information
> for the complete caller ancestry (rather than just the immediate
> caller) is expensive (both in terms of runtime and storage).
> Profiling usually is used as a preparation for optimization.
> Optimization has the greatest effects if applied to inner loops.
> And for the analysis of inner loops, complete call tree information
> is not necessary.
>
> > Is this correct? If not, how to get a timed call tree from Stats? Perhaps
> > that's not the right think to work with?
>
> You will need to write your own profiler - one that keeps track
> not only about the immediate caller of a function call but
> of the whole caller ancestry (maybe recursion reduced).
>
> You can see an example of a custom profiler
> in "Products.ZopeProfiler" (--> PyPI).
> It does not take into account the whole caller ancestry.
> Instead it records additional information concerning higher level
> Zope (a Web application framework) calls.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyConDE 2018 (Germany) & PyData Karlsruhe CfP extended.

2018-05-28 Thread Alexander CS Hendorf [PyConDE 2018]
The CfP has been extended for one more week until Sunday June 3 24:00 AoE 
(Anywhere on Earth).

PyCon.DE is where Pythonistas in Germany can meet to learn about new and 
upcoming Python libraries, tools, software and data science. 
We welcome Python enthusiasts, programmers, data scientists and everyone else 
from around the world to join us in Karlsruhe this year.
It's the second time our team runs the conference and we expect more than 500 
participants for this year's conference. 
The conference lasts 3 days + 2 days of sprints featuring about 60 talks, 
tutorials and hands on sessions.

The conference will be held in English language only.

Dates:
main conference: Wednesday October 24 - Friday October 26
sprints: Saturday October 27 - Sunday October 28

Karlsruhe is a major engineering hub of Germany with an elite university KIT. 
Companies in the area include Bosch, Daimler, Porsche, and SAP.
It's easy to reach Karlsruhe by high speed train ICE/TGV or plane (directly of 
via Frankfurt + high speed train or via Stuttgart).

Proposals
==

We’re looking for proposals on every aspect of Python: programming from novice 
to advanced levels, applications and frameworks, or how you have been involved 
in introducing Python into your organization. PyConDE is a community conference 
and we are eager to hear about your experience.

CfP: 

The conferences addresses:

* Data Scientists
* Software Developers
* System Administrators
* Academic Scientists
* Technology Enthusiasts
* Innovation Managers
* AI Engineers

We are looking for:

* 15 minute presentations - keeping a long story short (no Q&A)
* 30 minute presentations (incl. optional 5 minute Q&A)
* 45 minute presentations (incl. optional 5 minute Q&A)
* 90 minute workshops
* Posters

PyData @ PyConDE 2018
==
There will be a PyData track at this year’s conference. 
Please submit your papers for the PyData track through the PyConDE form.

CfP will close Sunday June 3 24:00 AoE (Anywhere on Earth).
We plan to notify speakers by second week of June
and release a draft schedule in June.

As many other PyCon conferences, everyone must buy a ticket. 
Contributors are entitled to a ticket at early bird price.

To foster diversity and to make PyConDE accessible for any pocket size,
we do have a financial support program, more details here:
https://de.pycon.org/blog/fin-aid/ 

Please familiarise yourself with the conference code of conduct 
https://de.pycon.org/code-of-conduct/ 




Alexander Hendorf
@hendorf

as PyConDE & PyData Karlsruhe 2018 program chair & organiser

PyConDE & PyData Karlsruhe 2018:
https://de.pycon.org 
https://twitter.com/pyconde 

-- 
https://mail.python.org/mailman/listinfo/python-list


help

2018-05-28 Thread Mutyala Veera Vijaya Teja
 Hello,
  This is vijayteja am getting an error like ssl certificate
failure when try to install packages. I've searched in the internet I've
not got any correct solution please maintain python's official blog which
contains all python issues and problems and how to solve them.

Thanks & Regards,


Mutyala Veera Vijay Teja

Software Developer

(M) +91- 8341841937

Skype ID: Veera Vijay Teja



[image: Facebook icon] [image:
LinkedIn icon]  [image: Twitter icon]
 [image: Youtube icon]

-- 
https://mail.python.org/mailman/listinfo/python-list