6aac747a8d9a55ca91d6408fee9a386289720a8e,pyprob/state.py,,extract_address,#,43

Before Change


    //     print(t[0], t[1], t[2], t[3])
    frame = tb[-3]
    // return "{0}/{1}/{2}".format(frame[1], frame[2], frame[3])
    return "{0}/{1}".format(frame[1], frame[2])

def sample(distribution):
    global current_trace

After Change


//    return "{0}/{1}".format(frame[1], frame[2])
    // Retun an address in the format:
    // "instruction pointer" / "qualified function name"
    frame = sys._getframe(3)
    ip = frame.f_lasti
    names = []
    while frame is not None:
        names.append(frame.f_code.co_name)
        frame = frame.f_back
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pyprob/pyprob
Commit Name: 6aac747a8d9a55ca91d6408fee9a386289720a8e
Time: 2017-11-28
Author: webmaster@tobiaskohn.ch
File Name: pyprob/state.py
Class Name:
Method Name: extract_address


Project Name: jazzband/django-debug-toolbar
Commit Name: 2c7f68d55a6a0c101c41bd23ccb2d0ce9b332e42
Time: 2012-03-31
Author: jannis@leidel.info
File Name: debug_toolbar/panels/cache.py
Class Name: CacheStatTracker
Method Name: _get_func_info


Project Name: pyprob/pyprob
Commit Name: 6f1f7bb0dc12f1272595a3c73312fde907a76313
Time: 2017-11-30
Author: webmaster@tobiaskohn.ch
File Name: pyprob/state.py
Class Name:
Method Name: extract_address