Using Developer-Tool-Interactions to Expand Tracing Capabilities

Total Page:16

File Type:pdf, Size:1020Kb

Using Developer-Tool-Interactions to Expand Tracing Capabilities Using Developer-tool-Interactions to Expand Tracing Capabilities Dennis Ziegenhagen1;2, Andreas Speck1 and Elke Pulvermuller¨ 2 1Department of Computer Science, Christian-Albrechts-University Kiel, 24098 Kiel, Germany 2Institute for Computer Science, Osnabrueck University, Postfach 4469, 49069 Osnabruck,¨ Germany Keywords: Traceability, Tracing Data Generation, Tool Integration, Developer-tool-Interaction. Abstract: Expanding current software traceability methodologies offers opportunities to significantly support develop- ment activities. State-of-the-art traceability frameworks use tracing data at specific points in time. This data includes information about development artefacts and their relations, which may be used for analysis, visuali- sation and similar purposes. In between those points in time, developers create, modify or delete requirements, diagrams, source code and other relevant artefacts. We propose to capture such artefact interactions in order to enrich the tracing data. By applying existing approaches in the field of developer-tool interaction analysis to the enriched data, we aim at supporting the developer’s work. In this paper, we present the overall approach, along with our development of a modular framework which may be used to capture the desired data from various tools, manage it and finally enable the execution of developer-interaction analyses. 1 INTRODUCTION details on how they are changed during development. In our approach, changing an artefact leads to an auto- Applying traceability methodologies to software de- mated updating of the respective tracing data. For this velopment allows project members to gain insights reason, we call this enrichment dynamic tracing data into the involved processes and results. Depending as opposed to “static tracing”. Of course, in current on the goals of the traceability implementation, infor- traceability applications the data also changes over mation about various types of requirements, source time (and thus is not completely static), but we use code, test cases and other artefacts is collected in a this denomination to emphasise the fundamental idea structured way. Identifying, managing and updating of combining artefacts, their relations and developer- their relations throughout the development is a core tool-interactions which influence them. task in order to create the desired trace links. For a Capturing this data allows to integrate various ex- basic application, these steps may be done manually. isting approaches and findings on the interactions be- Additionally, (semi-) automated approaches are avail- tween developers and their tools. Amongst others, able, e.g. by utilising information retrieval for recov- these include supporting the developer by providing ering traceability links. Yet traceability is not broadly helpful information for accomplishing a specific task used and current analyses state necessary researches (Maalej and Sahm, 2010) and suggesting error solv- and problem areas (Cleland-Huang et al., 2014). ing solutions (Hartmann et al., 2010). Besides an ex- Since software development involves various tools tension of traceability features, the goal is to use the for particular tasks, the approach which we present combined dynamic and static data in order to enable here tries to take advantage of this. A number of them further analysis, research, and finally assist the users. offer interfaces, e.g. APIs, that can be used to access An example usage is the detection of correlating prop- the contents which the user creates using the tools. erties across tool boundaries, e.g. interdependent real- Furthermore, these interfaces may not only provide time constraints which are modelled using different data, but also enable the execution of internal func- tools (Noyer et al., 2017). tionalities. As an example, many IDEs are extensi- In this paper, we motivate the idea of capturing ble via plug-in mechanisms along with correspond- interaction events to enrich current traceability data. ing APIs. We utilise such possibilities in order to re- For this, related work in the fields of traceability and ceive information about interactions which influence interaction analysis is considered. In order to intro- traced artefacts. Thus, we enrich tracing data with duce our approach, the overall goals and general, ini- 518 Ziegenhagen, D., Speck, A. and Pulvermüller, E. Using Developer-tool-Interactions to Expand Tracing Capabilities. DOI: 10.5220/0007762905180525 In Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering (ENASE 2019), pages 518-525 ISBN: 978-989-758-375-9 Copyright c 2019 by SCITEPRESS – Science and Technology Publications, Lda. All rights reserved Using Developer-tool-Interactions to Expand Tracing Capabilities tial thoughts are summarised. They form the basis age data, and “online” approaches which directly for presenting our environment for capturing and us- monitor interactions when they occur. Examples for ing the combined data. Briefly summarised, it is a the first type can be found at (Snipes et al., 2015) and modular solution to enable a flexible bridging of both (Damevski et al., 2017), who utilise data collected by areas: software traceability and developer-tool inter- IDEs. (Roehm and Maalej, 2012) show an example action analysis. An example scenario is provided to for the second type. The authors, along with others, illustrate the framework and its intended application. also present an application to support developers by using the monitored data (Roehm et al., 2013). An interesting approach of considering the mo- 2 RELATED WORK mentary used set of tools and artefacts as a context for performing a task is presented by (Maalej and Sahm, 2010). Thus, the developer’s work is struc- Considering available traceability solutions, those tured into tasks for which the involved artefacts are containing an automated tracing data generation are captured in a history-like manner. This idea has been most important for us. For example, (Neumuller¨ and carried further to analyse the suiting of traceability Grunbacher,¨ 2006) present lessons learned from de- methods for specific tasks contexts by (Li and Maalej, veloping and introducing a specialised traceability 2012). Though focusing on visualisation techniques, framework in a small company. Because the avail- their findings also provide insights in how developers able traceability environments didn’t suit the intended interact with artefacts in various tasks, e.g. design, purposes, they built a custom solution with a fo- implementation and testing. cus on automated trace acquisition. Amongst oth- ers, the authors motivate the success of their project with smoothly integrating existing development tools. Also, they preferred automating selected features in- 3 CURRENT STATE OF stead of adopting a commercial product with many TRACEABILITY probably unused functions. An overview of retrospective and prospective soft- The term traceability is used in many areas and thus ware traceability is provided by the work of (Asun- may include different scopes and methodologies, de- cion et al., 2010). The authors combine these tech- pending on the actual purpose of its usage. For ex- niques by applying topic modelling to tracing data ample, requirements traceability usually puts the life- which is recorded using various tool adapters. A dif- cycle of a project’s requirements into focus and en- ference to our approach can be found in the way work- ables forward and backward tracing of these (Go- ing with multiple projects is integrated. While Asun- tel and Finkelstein, 1994). This aims at answer- cion et al. aim at separating the tracing data of each ing higher, project-related questions, e.g. whether project from other projects, we instead use it to iden- all specified requirements have been implemented or tify cross-project relations and e.g. to provide devel- which requirements are affected by an erroneous soft- opers with problem solutions from other projects. ware module. Regarding model-driven development “SAT Analyzer” (Palihawadana et al., 2017) is an as another example, the view on traceability is a example for traceability management environments. bit more general and emphases the tracing of gener- It supports predetermined artefact types. By including ated artefacts, e.g. created during model transforma- DevOps practices, it is able to track artefact changes tion (Walderhaug et al., 2006) (Haouam and Meslati, between builds and to create tracing data based on 2016). these changes semi-automatically. Due to these varying aspects, first of all, it is Extending traceability with a developer action has necessary to define the term traceability itself and been realised by (Mahmoud and Niu, 2013). The au- its scope. Our approach considers various roles thors analyse the impact various types of refactoring of project members and their work during different have on the traceability of a software project. De- phases of software development. To enable this, we pending on the type, they observed both, positive use a broad definition of the term, which for example and negative effects during refactoring. This con- Aizenbud-Reshef et al. propose: “We regard trace- firms our assumption that considering developer in- ability as any relationship that exists between arti- teractions may be a valuable extension to the tracing facts involved in the software-engineering life cycle” methodologies. (Aizenbud-Reshef et al., 2006). Research on developer-interaction-analysis can By considering
Recommended publications
  • Navigating the Next Evolution of Application Development Using Distributed Tracing
    Navigating the Next Evolution of Application Development Using Distributed Tracing Navigating the Next Evolution of Application Development 1 Table of Contents Introduction ...........................................................................................................................................................................................3 How has software been built? Waterfall vs. DevOps ................................................................................. ............................. 4 The next evolution: Microservices ................................................................................................................................................5 What will you need to do differently to capitalizeon modern application development? ..........................................6 Get started with Epsagon on AWS ...............................................................................................................................................8 Case Study: Bastian Solutions .......................................................................................................................................................9 Learn More ..........................................................................................................................................................................................10 Navigating the Next Evolution of Application Development 2 Introduction Building and maintaining a competitive edge often requires you to evolve with your customers’
    [Show full text]
  • Traceability Establishment and Visualization of Software Artefacts in Devops Practice: a Survey
    (IJACSA) International Journal of Advanced Computer Science and Applications, Vol. 10, No. 7, 2019 Traceability Establishment and Visualization of Software Artefacts in DevOps Practice: A Survey D. A. Meedeniya1, I. D. Rubasinghe2, I. Perera3 Dept. of Computer Science and Engineering, University of Moratuwa, Sri Lanka Abstract—DevOps based software process has become the artefacts in the SDLC [2][3]. There are different forms of popular with the vision of an effective collaboration between the relationships between the homogeneous and heterogeneous development and operations teams that continuously integrates software artefacts. Some artefacts may be highly coupled, and the frequent changes. Traceability manages the artefact some may depend on other artefacts in different degrees, consistency during a software process. This paper explores the unidirectionally or bidirectionally. Thus, software artefacts trace-link creation and visualization between software artefacts, consistency management helps to fine-tune the software existing tool support, quality aspects and the applicability in a process. The incomplete, outdated software artefacts and their DevOps environment. As the novelty of this study, we identify the inconsistencies mislead both the development and maintenance challenges that limit the traceability considerations in DevOps process. Thus, artefact management is essential such that the and suggest research directions. Our methodology consists of changes are accurately propagated to the impacted artefacts concept identification, state-of-practice exploration and analytical review. Despite the existing related work, there is a without creating inconsistencies. Traceability is the potential to lack of tool support for the traceability management between relate artefacts considering their relationships [4][5]; thus, a heterogeneous artefacts in software development with DevOps solution for artefact management.
    [Show full text]
  • Linuxcon North America 2012
    LinuxCon North America 2012 LTTng 2.0 : Tracing, Analysis and Views for Performance and Debugging. E-mail: [email protected] Mathieu Desnoyers August 29th, 2012 1 > Presenter ● Mathieu Desnoyers ● EfficiOS Inc. ● http://www.efficios.com ● Author/Maintainer of ● LTTng, LTTng-UST, Babeltrace, Userspace RCU Mathieu Desnoyers August 29th, 2012 2 > Content ● Tracing benefits, ● LTTng 2.0 Linux kernel and user-space tracers, ● LTTng 2.0 usage scenarios & viewers, ● New features ready for LTTng 2.1, ● Conclusion Mathieu Desnoyers August 29th, 2012 3 > Benefits of low-impact tracing in a multi-core world ● Understanding interaction between ● Kernel ● Libraries ● Applications ● Virtual Machines ● Debugging ● Performance tuning ● Monitoring Mathieu Desnoyers August 29th, 2012 4 > Tracing use-cases ● Telecom ● Operator, engineer tracing systems concurrently with different instrumentation sets. ● In development and production phases. ● High-availability, high-throughput servers ● Development and production: ensure high performance, low-latency in production. ● Embedded ● System development and production stages. Mathieu Desnoyers August 29th, 2012 5 > LTTng 2.0 ● Rich ecosystem of projects, ● Key characteristics of LTTng 2.0: – Small impact on the traced system, fast, user- oriented features. ● Interfacing with: Common Trace Format (CTF) Interoperability Between Tracing Tools Tracing Well With Others: Integration with the Common Trace Format (CTF), of GDB Tracepoints Into Trace Tools, Mathieu Desnoyers, EfficiOS, Stan Shebs, Mentor Graphics,
    [Show full text]
  • System Wide Tracing and Profiling in Linux
    SYSTEM WIDE TRACING AND PROFILING IN LINUX Nadav Amit Agenda • System counters inspection • Profiling with Linux perf tool • Tracing using ftrace Disclaimer • Introductory level presentation • We are not going to cover many tools • We are not going to get deep into the implementation of the tools • I am not an expert on many of the issues Collect Statistics • First step in analyzing the system behavior • Option 1: Resource statistics tools • iostat, vmstat, netstat, ifstat • dstat Examples: dstat --vm --aio • dstat • dstat --udp --tcp --socket • dstat --vm --aio dstat --udp --tcp --socket Watch system behavior online • Option 2: Sample the counter • top • Use –H switch for thread specific • Use ‘f’ to choose additional fields: page faults, last used processor • Use ‘1’ to turn off cumulative mode • iotop • Remember to run as sudoer top Inspect Raw Counters • Option 3: Go to the raw counters • General • /proc/stat • /proc/meminfo • /proc/interrupts • Process specific • /proc/[pid]/statm – process memory • /proc/[pid]/stat – process execution times • /proc/[pid]/status – human readable • Device specific • /sys/block/[dev]/stat • /proc/dev/net • Hardware • smartctl /proc/interrupts /sys/block/[dev]/stat Name units description ---- ----- ----------- read I/Os requests number of read I/Os processed read merges requests number of read I/Os merged with in-queue I/O read sectors sectors number of sectors read read ticks milliseconds total wait time for read requests write I/Os requests number of write I/Os processed write merges requests number
    [Show full text]
  • Debugging and Profiling with Arm Tools
    Debugging and Profiling with Arm Tools [email protected] • Ryan Hulguin © 2018 Arm Limited • 4/21/2018 Agenda • Introduction to Arm Tools • Remote Client Setup • Debugging with Arm DDT • Other Debugging Tools • Break • Examples with DDT • Lunch • Profiling with Arm MAP • Examples with MAP • Obtaining Support 2 © 2018 Arm Limited Introduction to Arm HPC Tools © 2018 Arm Limited Arm Forge An interoperable toolkit for debugging and profiling • The de-facto standard for HPC development • Available on the vast majority of the Top500 machines in the world • Fully supported by Arm on x86, IBM Power, Nvidia GPUs and Arm v8-A. Commercially supported by Arm • State-of-the art debugging and profiling capabilities • Powerful and in-depth error detection mechanisms (including memory debugging) • Sampling-based profiler to identify and understand bottlenecks Fully Scalable • Available at any scale (from serial to petaflopic applications) Easy to use by everyone • Unique capabilities to simplify remote interactive sessions • Innovative approach to present quintessential information to users Very user-friendly 4 © 2018 Arm Limited Arm Performance Reports Characterize and understand the performance of HPC application runs Gathers a rich set of data • Analyses metrics around CPU, memory, IO, hardware counters, etc. • Possibility for users to add their own metrics Commercially supported by Arm • Build a culture of application performance & efficiency awareness Accurate and astute • Analyses data and reports the information that matters to users insight • Provides simple guidance to help improve workloads’ efficiency • Adds value to typical users’ workflows • Define application behaviour and performance expectations Relevant advice • Integrate outputs to various systems for validation (e.g.
    [Show full text]
  • Bidirectional Tracing of Requirements in Embedded Software Development
    Bidirectional Tracing of Requirements in Embedded Software Development Barbara Draxler _________________________________ Fachbereich Informatik Universität Salzburg Abstract Nowadays, the increased complexity of embedded systems applications re- quires a systematic process of software development for embedded systems. An important difficulty in applying classical software engineering processes in this respect is ensuring that specific requirements of safety and real-time properties, which are usually posed at the beginning of the development, are met in the final implementation. This difficulty stems from the fact that requirements engineering in general is not mature in the established soft- ware development models. Nevertheless, several manufacturers have recently started to employ available requirements engineering methods for embedded software. The aim of this report is to provide insight into manufacturer practices in this respect. The report provides an analysis of the current state-of-art of requirements engineering in embedded real-time systems with respect to re- quirements traceability. Actual examples of requirements traceability and requirements engineering are analyzed against current research in require- ments traceability and requirements engineering. This report outlines the principles and the problems of traceability. Fur- thermore, current research on new traceability methods is presented. The importance of requirements traceability in real-time systems is highlighted and related significant research issues in requirements engineering are out- lined. To gain an insight in how traceability can aid process improvement, the viewpoint of CMMI towards requirements engineering and traceability is described. A short introduction in popular tracing tools that support require- ments engineering and especially traceability is given. Examples of traceabil- ity in the development of real-time systems at the Austrian company AVL are presented.
    [Show full text]
  • Traceability in Agile Software Projects
    Traceability in Agile software projects Master of Science Thesis in Software Engineering & Management VUONG HOANG DUC University of Gothenburg Chalmers University of Technology Department of Computer Science and Engineering Göteborg, Sweden, May 2013 The Author grants to Chalmers University of Technology and University of Gothenburg the non-exclusive right to publish the Work electronically and in a non-commercial purpose make it accessible on the Internet. The Author warrants that he/she is the author to the Work, and warrants that the Work does not contain text, pictures or other material that violates copyright law. The Author shall, when transferring the rights of the Work to a third party (for example a publisher or a company), acknowledge the third party about this agreement. If the Author has signed a copyright agreement with a third party regarding the Work, the Author warrants hereby that he/she has obtained any necessary permission from this third party to let Chalmers University of Technology and University of Gothenburg store the Work electronically and make it accessible on the Internet. Traceability in Agile software projects VUONG.HOANG DUC VUONG. HOANG DUC, May 2013. Examiner: CHRISTIAN.BERGER University of Gothenburg Chalmers University of Technology Department of Computer Science and Engineering SE-412 96 Göteborg Sweden Telephone + 46 (0)31-772 1000 ABSTRACT Context: Software applications have been penetrating every corner of our daily life in the past decades. This condition demands high quality software. Traceability activities have been recognized as important factors supporting various activities during the development process of a software system with the aim of improving software quality.
    [Show full text]
  • Distributed Architecture for an Integrated Development Environment, Large Trace Analysis, and Visualization
    sensors Article Distributed Architecture for an Integrated Development Environment, Large Trace Analysis, and Visualization Yonni Chen Kuang Piao 1, Naser Ezzati-jivan 2,* and Michel R. Dagenais 1 1 Computer Engineering and Software Engineering Department, Ecole Polytechnique Montreal, Montreal, QC h3t 1j4, Canada; [email protected] (Y.C.K.P.); [email protected] (M.R.D.) 2 Computer Science Department, Brock University, St. Catharines, ON l22 3a1, Canada * Correspondence: [email protected] Abstract: Integrated development environments (IDEs) provide many useful tools such as a code editor, a compiler, and a debugger for creating software. These tools are highly sophisticated, and their development requires a significant effort. Traditionally, an IDE supports different programming languages via plugins that are not usually reusable in other IDEs. Given the high complexity and constant evolution of popular programming languages, such as C++ and even Java, the effort to update those plugins has become unbearable. Thus, recent work aims to modularize IDEs and reuse the existing parser implementation directly in compilers. However, when IDE debugging tools are insufficient at detecting performance defects in large and multithreaded systems, developers must use tracing and trace visualization tools in their software development process. Those tools are often standalone applications and do not interoperate with the new modular IDEs, thus losing the power and the benefits of many features provided by the IDE. The structure and use cases of tracing tools, with the potentially massive execution traces, significantly differ from the other tools in IDEs. Thus, it is a considerable challenge, one which has not been addressed previously, to integrate them into the new modular IDEs.
    [Show full text]
  • Devops/Continuous Delivery Tooling
    DevOps/Continuous Delivery Tooling Launchpad for the Digital Enterprise Report Summary ENTERPRISE MANAGEMENT ASSOCIATES® (EMA™) Research Report Written by Julie Craig, Research Director, Application Management Spring 2017 Sponsored by: IT & DATA MANAGEMENT RESEARCH, INDUSTRY ANALYSIS & CONSULTING Report Summary – DevOps/Continuous Delivery Tooling: Launchpad for the Digital Enterprise Table of Contents Overview .....................................................................................................................................................1 10 Key Takeaways ........................................................................................................................................2 DevOps and Continuous Delivery: People, Processes, and Technology Interacting Across the Lifecycle .....3 Automation Supporting DevOps and Continuous Delivery in the Digital Enterprise ................................3 Background and Methodology ...................................................................................................................5 Digital Business in 2017 ..............................................................................................................................5 Technology Landscapes ................................................................................................................................6 Automation and Tooling for the Digital Business ........................................................................................7 Continuous Delivery .................................................................................................................................11
    [Show full text]
  • Requirements Traceability and the Effect on the System Development Lifecycle (SDLC)
    Requirements Traceability and the Effect on the System Development Lifecycle (SDLC) by Glenn A. Stout (STOUT) DISS 725: Systems Development Process Spring Cluster, 2001 Research Paper 2 Glenn A. Stout (STOUT) Table of Contents Overview........................................................................................................................................3 Purpose..........................................................................................................................................3 Traceability....................................................................................................................................3 Traceability and Traceability Item Defined...............................................................................4 Traceability Links..................................................................................................................4 Traditional Requirements Gathering.............................................................................................5 In General..................................................................................................................................5 Engaging in the Practice of Tracing Requirements.......................................................................6 Software Requirements Specification (SRS).............................................................................6 Use Case Methodology..............................................................................................................7
    [Show full text]
  • Monitoring, Tracing, Debugging (Under Construction)
    Monitoring, Tracing, Debugging (Under Construction) I was already tempted to drop this topic from my lecture on operating systems when I found Stephan Siemen's article "Top Speed" in Linux World 10/2003. He mentions a whole range of useful tools for performance tracking and bug finding on Linux and I decided to take his list and give some additional background on how these things work.After being a unix kernel hacker for some year I moved into user space and started to develop more and more user level code. I soon realized that the style of development used for kernel hacking is quite different to the one needed for servers, frameworks and applications. Some concepts still apply, like logging events. Others change, e.g. using garbage collectors. Some of the tools that made the biggest impression where Pure Atria's Purify (now IBM Rational) - object code instrumentation the easy way. And the Visual Age (now Eclipse) Debugger which made me give up on printf/println style of finding bugs. Look at the resource section at the end for links. Introduction 2 / 30 Goals 1. A word on monitoring, tracing, debugging. 2. Modern approaches for tracing, logging and auditing. 3. Understanding interfaces within and between programs and environments. Remember: every problem in computer science is solved with one more level of indirection. And interfaces are the locations where program flow can be re-directed. 4. Monitoring Levels 5. Different techniques for monitoring 6. Performance and memory tracking. How garbage collection works will be explained in detail in our session on virtual memory.
    [Show full text]
  • Recovering Traceability Links in Software Artifact Management Systems Using Information Retrieval Methods
    13 Recovering Traceability Links in Software Artifact Management Systems using Information Retrieval Methods ANDREA DE LUCIA, FAUSTO FASANO, ROCCO OLIVETO, and GENOVEFFA TORTORA University of Salerno The main drawback of existing software artifact management systems is the lack of automatic or semi-automatic traceability link generation and maintenance. We have improved an artifact management system with a traceability recovery tool based on Latent Semantic Indexing (LSI), an information retrieval technique. We have assessed LSI to identify strengths and limitations of using information retrieval techniques for traceability recovery and devised the need for an incremental approach. The method and the tool have been evaluated during the development of seventeen software projects involving about 150 students. We observed that although tools based on information retrieval provide a useful support for the identification of traceability links during software development, they are still far to support a complete semi-automatic recovery of all links. The results of our experience have also shown that such tools can help to identify quality problems in the textual description of traced artifacts. Categories and Subject Descriptors: D.2.7 [Software Engineering]: Distribution, Maintenance, and Enhancement; D.2.9 [Software Engineering]: Management—Software configuration man- agement; G.1.3 [Numerical Analysis]: Numerical Linear Algebra—Singular value decomposition; H.3.1 [Information Storage and Retrieval]: Content Analysis and Indexing—indexing methods; H.3.3 [Information Storage and Retrieval]: Information Search and Retrieval General Terms: Documentation, Management Additional Key Words and Phrases: Software artifact management, traceability management, impact analysis, latent semantic indexing ACM Reference Format: De Lucia, A., Fasano, F., Oliveto, R., and Tortora, G.
    [Show full text]